Questions tagged [start-up]
About starting and initializing an Emacs session
190
questions
0
votes
1
answer
35
views
emacs opens from Windows start menu but not terminal
I upgraded a few months ago to emacs29.1. Everything appeared to work until I tried to open emacs from a terminal.
Here is the error message
Warning: arch-independent data dir 'c:/Program Files/Emacs/...
0
votes
1
answer
91
views
Transition to emacs 29.1, "Eager macro-expansion failure" error at startup
On windows 10 at this time.
Transitioning from emacs 27.2 -> 29.1
Emacs 27.2 starts up and runs the code in the .emacs and custom file ok.
Downloaded emacs 29.1 to try it out.
Emacs 29.1 errors out ...
0
votes
1
answer
18
views
Strange behavior of win desktop shortcut
The emacs installer puts a shortcut on the desktop that works perfectly.
If I open the emacs/bin folder, choose emacs.exe an the "Send to desktop" it creates a different kind of shortcut. ...
0
votes
1
answer
59
views
why does emacs open an empty buffer named "BLANK" on startup?
When I start emacs, it opens an empty buffer named BLANK. I have no idea where this comes from and would like to not have it there, since there's nothing in it and it clutters up the buffer list.
I do ...
0
votes
1
answer
49
views
How does startup.el work (on Debian 12)
I'm using the emacs/stable,stable,now 1:28.2+1-15 Debian package with Doom and am trying to change startup behavior. I made backups of startup.el.gz and startup.elc located at /usr/share/emacs/28.2/...
0
votes
1
answer
55
views
How can Emacs evaluate a variable before adding to a list?
I've seen a few similar questions, but I load this in my init.el and org-agenda-custom-commands is still empty when Emacs starts, so I have to evaluate this code block manually.
I basically just want ...
0
votes
0
answers
77
views
AucTeX doesn't start properly
I just moved to an M2 Mac and simultaneously abandoned AquaMacs for Emacs 28.2. Everything more or less works, except that after installing AucTeX, it fails to start properly, giving me
internal--...
0
votes
0
answers
23
views
How can I find out that an Org Agenda file had been opened with 'inhibited startup'?
My Emacs is opening the Agenda file in the background with org-agenda-inhibit-startup locally bound to t. When I switch to such a file, all trees are therefore displayed open (no folding).
I would ...
1
vote
1
answer
69
views
Problem with packages when emacs is run as a daemon
I have a very odd problem when Emacs daemon is started by the system. Currently, I work on:
Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-03
After ...
3
votes
3
answers
302
views
emacs starts in extremely tiny window
Emacs has been starting up in an extremely small window for some reason. The text size is normal, but the window is something like 3 lines tall x 10 chars wide. Of course I can use my mouse and just ...
0
votes
0
answers
161
views
Prevent emacs from calling melpa/updating on startup
This is already the 2nd time I can't start emacs as one single package on a server can't be found.
My current configuration works fine and I'd rather have a reliable system than one that is always up ...
2
votes
1
answer
48
views
FILE(s) Passed by Shell to Emacs to Visit
The FILE mentioned in the title, is what in
$ emacs FILE
or
$ emacs -file FILE
or something else similar.
How do I know whether there’s a FILE / FILEs set for Emacs to visit at startup?
If there’...
0
votes
0
answers
24
views
How to debug "Don’t know how to make a localized variable an alias" errors at startup?
Background: my company provides (confidential) elisp libraries for editing source code in several languages, including TypeScript. I added some lines to load these libraries to my init.el:
(require '...
0
votes
0
answers
118
views
Emacs 28.2 does not open from finder/dock on OS X Monterey
I downloaded Emacs 28.2 (released 2022-09-12) for OS X from here. When I try to open it from Spotlight search or the dock, it sometimes bounces, sometimes hangs, but never opens.
I can open it from ...
2
votes
1
answer
385
views
How do I hide the welcome screen if and only if one or more files are opened by emacs upon startup?
Right now, if I do "emacs foo1 foo2" emacs will open with foo1 and the welcome screen showing in two windows splitting the frame vertically. Instead, I want to be shown foo1 and foo2. ...
1
vote
0
answers
56
views
How to ignore (for recentf) files opened automatically during start-up
Some modes, on Emacs start-up, load a lot of files automatically. Example: Org-mode refreshes its agenda by reading every file configured to contain agenda items.
But these "read the file ...
1
vote
2
answers
55
views
What variable holds filenames specified on Emacs command line?
What variable can Emacs Lisp access, to know the filenames specified on the command line that was used to invoke this Emacs session?
The general command-line-args contains the remaining command-line ...
0
votes
0
answers
62
views
lsp-pyright defer init until a .py file is open
Hey guys i'm improving my startup, Emacs version 28.2.
I did a benchmark on init and I noticed that the thing that takes most of the time is lsp-pyright. That initializes lsp-mode.
But I don't ...
1
vote
3
answers
34
views
Load default.el configured by libraries but not the user's init.el
As far as I understand libraries can define a default.el file that will be loaded on startup. I would like to run librarie's default.el, but not the init file of the user (e.g. in .emacs/init.el). Is ...
1
vote
1
answer
234
views
Setting position of initial frame from user defined values
I would like to set the frame position of the initial frame, by letting the user position the frame where he wants. I can then save the cons cell in a variable which will then be used for set-frame-...
0
votes
1
answer
52
views
Why is debug-on-error always enabled at startup?
Whenever I start up emacs, debug-on-error is enabled. I can't figure out why, there's nowhere where I explicitly enable it. Is there any way for me to figure out where it's coming from?
1
vote
1
answer
140
views
How can I make emacs load `environment modules`?
I keep packages organized on my laptop using environment modules (http://modules.sourceforge.net/).
Hence if I need a particular version of python, I can do
module load python39 etc.
Now if I first ...
0
votes
1
answer
85
views
change starting buffer from *scratch* to recentf-open-files
I like the buffer that is opened when type M-x recentf-open-files. I'd love to have it as my starting buffer instead of scratch, but I don't know how.
I've tried adding '(initial-buffer-choice '...
2
votes
1
answer
49
views
How to NOT connect to daemon?
When invoking emacs, is there a way to specify that it should not connect to any emacs daemon, but instead should run as an isolated instance?
1
vote
1
answer
72
views
Enabling --debug-init from within .emacs
Emacs can be started with the -debug-init command-line option. But how can I enable the command line option from within my .emacs file?
0
votes
1
answer
331
views
The latest Emacs initialization hook
I am currently running Emacs as a desktop with EXWM.
And I am trying to run some apps on startup to see them in a EXWM's systemtray:
(defun run-auto-start ()
(start-process-shell-command "...
0
votes
2
answers
70
views
How to open a startup file in view-mode?
I configured Emacs (28.1) to open an index file (index.org) at startup. Now I would like this file to be opened in view-mode. I tried
(setq initial-buffer-choice "~/PATH/index.org")
(view-...
0
votes
1
answer
65
views
Trying to open Diary on startup but Emacs is launching in split screen, how can I stop it
I have (diary) setup in my .emacs file so that it will launch diary on launch but it always launches in horizontal split screen with fancy diary mode on bottom and Scratch on top. I've inhibited the ...
1
vote
1
answer
247
views
Slow start-up in MS Windows and relation to the Windows registry
I am using Doom in MS Windows with Emacs 27.2. I am experiencing some very slow start-up times (I included the output of benchmark-init/show-duration-tree at the end).
Also, the first actions I ...
0
votes
0
answers
165
views
Mac terminal nw user: how do I start emacs in gui mode? My /Application folder of Mac doesn't have an emacs icon
how do I start emacs in gui mode? My /Application folder of Mac doesn't have an emacs icon
I only need gui mode maybe a week, say when editing a html document with inline images.
my-silica $ which ...
0
votes
2
answers
108
views
How to use `initial-scratch-message` variable to display mutliple status informations after start
I want to use the scratch buffer to display some status informations after starting emacs. I read I can use initial-scratch-message variable for this.
But I do not know how to set it up.
Here you see ...
0
votes
1
answer
50
views
How can I remove more libs to reduce loading at startup?
When I view the number of commands or functions through M-x I notice so many that I never use. However I also didn't load them explicitly in my init.el either. I do use use-package and have ...
0
votes
2
answers
957
views
Elpa + Melpa Certificate information issue at startup
I hadn't used Emacs for a few weeks and when I started it up I discovered issues with certificate information for elpa, melpa and orgmode. When I launch Emacs I get the following message:
The TLS ...
0
votes
0
answers
28
views
Emacs Not Running When I Try to Open a File (Windows)
I'm trying to upgrade my Emacs distribution from 25 to 27 (aspell no longer works... I use Emacs for org mode and LaTeX).
When I select runemacs.exe, emacs starts just fine. It uses my init file. I ...
0
votes
1
answer
86
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 ...
1
vote
1
answer
436
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 ...
1
vote
0
answers
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
1
answer
101
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
2
answers
413
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
1
answer
100
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
1
answer
203
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.
1
vote
1
answer
111
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
1
answer
83
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
2
answers
138
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
1
answer
254
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
1
answer
1k
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
1
answer
151
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
1
answer
598
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
0
answers
104
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
1
answer
206
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 ...