Questions tagged [start-up]

About starting and initializing an Emacs session

Filter by
Sorted by
Tagged with
0
votes
1answer
52 views

Why not store all .el/.elc Elpa files inside the same directory to speed up Emacs startup?

Would it not be possible to modify Emacs package system to store all Emacs Lisp files installed from Elpa-compliant packages inside the same directory? That would dramatically reduce the number of ...
0
votes
1answer
26 views

Why does setting use-package-always-ensure cause Emacs to contact package repositories at startup?

I have the following in my init.el: (setq use-package-always-ensure t) because I want packages referenced by use-package to be downloaded automatically if I don't have them. When I enable this ...
0
votes
0answers
78 views

Get fancy startup screen on new emacsclient frame

When I run emacsclient -c, How can I get a frame with the fancy-startup-screen similar to when emacs is started by itself. I would like to see what I see with the start screen of the non-server ...
1
vote
0answers
15 views

Release terminal filestreams on start

I want emacs to release (instead of grabbing) the parent terminal when started through the command line. Better if it is possible to send error messages to some temporary file. By that I mean ...
1
vote
1answer
34 views

What is the difference between emacs -Q -u [my-user] and emacs -Q -l [my-init-file.el]

I have all my emacs config in .emacs.d/init.el. The first command in that file is: (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) When I ...
0
votes
2answers
74 views

How to make GNU Emacs start automatically right after booting and start with having much used files in buffers?

When I switch on my computer, 1st things I do: Open GNU Emacs, C-x C-f [file name A], Enter, C-x C-f [file name B], Enter, C-x b, Enter - in doing so going back to buffer of file A - C-x s, es - ...
2
votes
1answer
72 views

Emacs from an alias/function

uname -a Linux antixbox 4.9.235-antix.1-amd64-smp #1 SMP PREEMPT Mon Sep 14 19:26:52 EEST 2020 x86_64 GNU/Linux emacs --version GNU Emacs 27.1 echo $SHELL /usr/bin/zsh I'm trying to get the ...
0
votes
1answer
40 views

Start emacs with Global TODO list along with default org file

How can I open the global TODO list along side my default Org file. Even with Desktop Save mode is on, whenever I open Emacs, only the org file reopens, and not the buffer with the global TODO list.
0
votes
1answer
37 views

where is emacs saving files to open after launch?

I am using Spacemacs but I think this shouldn't matter for this question. For some reason I am not able to find the place where Emacs is storing the files to reopen after launch. I've greped for a ...
5
votes
1answer
52 views

Is there an efficient way to tell which parts of my startup of Emacs take the longest to load?

I have been trying to make the start-up times better. Almost all of my init.el is broken into use-package declarations like this: (use-package x ...) (use-package y ...) (use-package z ...) I want to ...
0
votes
2answers
34 views

How to remove second row of menu entries (or is it a toolbar)?

I have installed OpenSuse Tumbleweed and later Emacs. If I start Emacs from the shell, $ emacs -Q I have a double row of menu entries File - Edit - Options - ... - Help New File - Open - Open ...
0
votes
1answer
43 views

Persist variables (and maybe input history) across restarts [duplicate]

Sometimes I wish to persist the value of some variable when I quit emacs. For example, I would like to do this for compile-command. Now, I guess I could find the hook that is run when Emacs quits (...
0
votes
1answer
239 views

Doom Emacs start-up problems

Running Doom Emacs 2.0.9 on Emacs 27.1. In my init.el I have org-roam enabled like so: :lang (org +roam +journal) In my config.el I also load org-habits, hide it in initial agenda view and set-up a ...
0
votes
1answer
69 views

Doom Emacs — Use a library

Running Doom Emacs 2.0.9 on Emacs 27.1. A library org-inlinetask provides some functionality I need. I can SPC h P org-inlinetask to open the library. Then I can SPC c e to evaluate buffer. This makes ...
1
vote
1answer
117 views

Start emacs from the command line with remote ssh file open

How to start Emacs from the command line with and open file trough ssh? What I usually do is first open Emacs and do: C-X C-F /ssh:my_remote_server:/file.txt RET How can I directly open the file from ...
0
votes
0answers
41 views

How to run a keyboard macro (saved in my init.el) automatically when Emacs starts up?

I have saved a keyboard macro in my init.el file as follows (fset 'remember-notes-my-macro (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-...
0
votes
1answer
86 views

Emacs transparent after fresh install

Complete emacs beginner here. Just installed emacs in my Manjaro (awesomewm edition) machine using pacman. The emacs window is almost completely transparent, I can't read anything. If started from a ...
1
vote
0answers
104 views

Cannot figure out why vc-git.elc is always loaded on startup

This is more a curiosity, than a necessity. I'm playing around with startup times, and to have something to compare with, I wanted to see how fast emacs could start up pure. Running emacs -Q, emacs-...
0
votes
0answers
104 views

Emacs cannot start from spotlight, “Method 'zsh' is not known”

I just buy a new macbook and I want to move my old working env to it. I used emacs-plus@27.0.91 which was installed by homebrew: d12frosted/emacs-plus/emacs-plus@27: stable 27.0.91, HEAD /usr/local/...
1
vote
0answers
58 views

Start Emacs with gdb with a different main source file

I often run Gdb in a dedicated Emacs session. I have code to run gdb when Emacs start and set up Many-Windows mode. For one particular project, there are many programs, all written in C, that share a ...
0
votes
1answer
464 views

Launch emacs in eww mode, display local .html file at startup

I'm new to Emacs and I'm going about customizing my install on Mac OS Catalina. I have a twist on a common request. I had the idea to customize the emacs startup screen, but I see those options are ...
2
votes
2answers
878 views

Long Emacs start-up time (20~60s) on Windows 10

I have a working setup of emacs on Windows 10 that I like so far. However, I find that emacs start-up takes very long. It can be anywhere from 20s to 60s. I tried installing the benchmark-init package ...
1
vote
1answer
48 views

Does `use-package` reduce startup time? If so, how?

My understanding of Emacs's package management is that Emacs automatically loads all installed packages. use-package itself is a package, which only becomes usable after (package-initialize), at ...
1
vote
1answer
76 views

How to configure emacs to start in the middle of the screen, and not in the top left corner?

Currently have a GUI version of GNU Emacs v.26.3 (on MacOS Catalina, also have a similar version on Ubuntu 16.04), and because I'm just getting started with the editor, I have this question: how do I ...
0
votes
1answer
59 views

Linux command line to launch gnuemacs

I would like to launch Emacs by typing a command line in the terminal in Ubuntu linux. I want Emacs to open file a.txt in one frame and another file b.txt in another frame. I tried the command *emacs ...
1
vote
2answers
829 views

Is there a command for opening emacs in shell mode?

Suppose I want to open emacs with a file and shell mode together. If there were two files I would do emacs file1 file2 and emacs opens them both. Is there a command to do this with emacs file [shell]?
1
vote
2answers
66 views

Emacs startup and the elisp environment

Can anyone tell me what is going on when Emacs starts up? As I understand, Emacs has a "base," a "foundation" of code written in C, but then supposedly a great Lisp "program" takes flight. And from ...
3
votes
1answer
139 views

How to activate diff-mode from command line?

Git's editor config is set to launch emacs in no-window mode and to execute lisp function diff-mode: git config --global core.editor "emacs -nw -f diff-mode" However, when I execute git commit -v to ...
2
votes
2answers
346 views

Preload problem: Emacs as daemon in X

Background: I want to use emacs like tmux which can run as persistent session as well as shorten the time for me to start bringing up emacs when I want to (as inspired by these: Emacs and a Tmux ...
1
vote
0answers
80 views

How can I stop Emacs from grabbing focus at startup?

I typically start GUI Emacs on macOS, https://bitbucket.org/mituharu/emacs-mac/overview, installed via Nix package manager, as part of a larger startup script on the terminal (iterm). While Emacs is ...
1
vote
1answer
90 views

Can I open emacs in nw mode with the scratch buffer?

When starting emacs from the shell command line, if you pass the "dot", it opened emacs with a 'dired' of the current directory. But can I do this? emacs '*scratch*' so emacs opens with the focus ...
0
votes
1answer
46 views

Force function evaluation when setting variable value? [duplicate]

I have these functions defined in my early-init.el. I'm trying to change the location of where my backups are saved and keep getting a Wrong type argument stringp (djm/emacs-cache "backups/"). early-...
0
votes
3answers
1k views

use-package can't load package at startup

When I start Emacs I get the error message Error (use-package): Cannot load counsel But when I open init.el in a buffer and run eval-buffer everything works fine. What I'm doing wrong? My Emacs ...
0
votes
1answer
260 views

Multiple initial buffers in different windows

I have Emacs set up to open an initial org mode buffer on startup by (setq initial-buffer-choice "~/Directory/Subdirectory/inital_buffer1.org") Ideally on start up, I would like to open 2 buffers in ...
1
vote
1answer
340 views

Do not open “GNU Emacs” buffer when launching Emacs [duplicate]

"GNU Emacs" buffer is opened automatically when launching Emacs(both terminal and GUI), and I have to kill that buffer everytime. It's boring. How to turn "GNU Emacs" buffer off autimatically when ...
1
vote
0answers
272 views

Emacs slow when launching GUI

I have a weird problem. When I launch emacs GUI by double clicking the icon, or using open -a emacs in the terminal, or calling the application from alfred/spotlight it takes 4-8 seconds to launch. ...
1
vote
1answer
142 views

starting emacs from the commandline and setting line wrap to 60 - howto?

I'm new with Emacs and come from Joe. There I started editing mail from the command line by joe -rmargin 60 because I don't want to generally set the right margin to 60. I can't find a similar ...
2
votes
1answer
194 views

How to launch term at startup in Emacs?

I need to have Emacs open a terminal at start-up automatically (in order to use Fish in the terminal and use Emacs to for example search the Fish output). Normally I do this with 'M-x term'. Is ...
0
votes
1answer
315 views

Launch doom-emacs with options of main and #1

Upon launching doom-emacs, it displays What does the options main and #1 mean? It toggle [2] as default, how could I toggle 1
1
vote
1answer
135 views

desktop-save-mode: prevent emacs from showing each buffer on start-up

If you use desktop-save-mode, and have several hundred buffers saved, when you start emacs, emacs cycles through these buffers and shows each of them for a split second. Can this be prevented?
1
vote
1answer
184 views

Installation of Org-ref slows down start-up

I am super new to Emacs. I just followed the installation section of org-ref. I managed to get a simple citation working by adding bibliographystyle:plain to the file. This is one of the solution one ...
5
votes
2answers
177 views

Incremental Search after opening file

Being fairly new to GNU Emacs and intend to use it as a replacement to vi/vim where possible, I came across an obstacle, I seem not be able to overcome. In vim (similar to less) you can provide a ...
5
votes
1answer
2k views

Emacs Mac OSX after upgrade to 26.2 launches only in `-nw` mode

I upgraded to Emacs 26.2 on my Mac OSX Sierra instance via "brew". After the upgrade, the emacs command will not open a new "GUI window", i.e. it runs as if I passed the -nw args or ran it from an ...
1
vote
1answer
114 views

How do I specify a daemon to start with alternate emacs version with emacsclient

I have found this script from here #!/usr/bin/env zsh # Checks if there's a frame open emacsclient -n -e “(if (> (length (frame-list)) 1) ‘t)” 2> /dev/null | grep t &> /dev/null if [ “$?”...
0
votes
1answer
89 views

emacs (v24.3.1): command line '--' before the file name

I have a RHEL 7 box, and I've installed emacs onto it (v24.3.1). This version of Emacs seems to be broken. You used to be able to edit by entering a command like this: emacs -- somefilename.txt and ...
0
votes
1answer
42 views

How input all params from console without interactively?

Here snippet of my elips function: (defun log-report (filePath uniqueText) "Create log4j record report from any log4j (e.g.traceXXX.log) files. Log4j level MUST be in square brackets. e.g.: [DEBUG] ...
3
votes
1answer
307 views

how to show latest xkcd in dashboard on startup?

Dashboard can display images on startup. I was wondering how would I give it latest xkcd comic from xkcd-mode?
3
votes
1answer
993 views

How to prevent Emacs from creating two windows on startup Windows 10?

When I start Emacs not from the command line on Windows 10 it creates two windows, not one. Is there any way to make the blue window go away? I usually needs 4-5 instances of Emacs running so it ...
1
vote
2answers
1k views

Why doesn't set-background-color work in my init file?

I have an init file for Emacs located at /home/username/.emacs.d/init.el and it has the command (set-background-color "honeydew"). However, when I open Emacs the color has obviously not changed from ...
4
votes
1answer
597 views

How to init emacs with an option (such as `--debug-init`)

This might be a very silly question, and that's maybe why there's no answer on the internet. I'm using Windows 10. And I tried to click on properties, and then change the ending of the file's name ...