Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [start-up]

About starting and initializing an Emacs session

Filter by
Sorted by
Tagged with
1 vote
1 answer
102 views

How do I start non-GUI Emacs on the commandline?

How do I start non-GUI Emacs on the commandline? emacs-no-x11 doesn't seem to be in recent Emacs versions.
Geremia's user avatar
  • 171
0 votes
1 answer
88 views

emacs opens from Windows start menu but not terminal

I upgraded a few months ago to Emacs 29.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/...
Bert Munger's user avatar
1 vote
1 answer
357 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 ...
Mikef's user avatar
  • 175
0 votes
1 answer
21 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. ...
user3267886's user avatar
0 votes
1 answer
94 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 ...
Dan Drake's user avatar
  • 625
0 votes
1 answer
73 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/...
J-Kappes's user avatar
0 votes
1 answer
67 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 ...
Jason Hunter's user avatar
0 votes
0 answers
111 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--...
rogerl's user avatar
  • 205
0 votes
0 answers
25 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 ...
Public Image Ltd.'s user avatar
1 vote
1 answer
86 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 ...
Celdor's user avatar
  • 131
5 votes
5 answers
803 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 ...
xdavidliu's user avatar
  • 223
0 votes
0 answers
262 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 ...
Qohelet's user avatar
  • 185
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’...
shynur's user avatar
  • 5,318
0 votes
0 answers
131 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 ...
dfrankow's user avatar
  • 111
2 votes
1 answer
658 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. ...
Thomas's user avatar
  • 21
1 vote
0 answers
80 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 ...
bignose's user avatar
  • 639
1 vote
2 answers
61 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 ...
bignose's user avatar
  • 639
0 votes
0 answers
75 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 ...
Nico Stirnemann's user avatar
1 vote
3 answers
43 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 ...
tobiasBora's user avatar
1 vote
1 answer
380 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-...
Dilna's user avatar
  • 1
0 votes
1 answer
59 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?
Emoses's user avatar
  • 593
1 vote
1 answer
220 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 ...
ipcamit's user avatar
  • 123
0 votes
1 answer
114 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 '...
delki8's user avatar
  • 105
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?
ivan's user avatar
  • 1,948
1 vote
1 answer
103 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?
Dilna's user avatar
  • 1
0 votes
1 answer
501 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 "...
Viaceslavus's user avatar
0 votes
2 answers
92 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-...
crocefisso's user avatar
  • 1,353
0 votes
1 answer
80 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 ...
Hercislife's user avatar
1 vote
1 answer
285 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 ...
pgaluzio's user avatar
0 votes
0 answers
239 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 ...
american-ninja-warrior's user avatar
0 votes
2 answers
140 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 ...
buhtz's user avatar
  • 729
0 votes
1 answer
54 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 ...
lucidquiet's user avatar
0 votes
2 answers
1k 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 ...
twicetwice's user avatar
0 votes
0 answers
41 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 ...
MVH's user avatar
  • 1
0 votes
1 answer
91 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 ...
PRouleau's user avatar
  • 796
1 vote
1 answer
485 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 ...
joelittlejohn's user avatar
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 ...
nomad's user avatar
  • 257
1 vote
1 answer
113 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 ...
Victor's user avatar
  • 133
1 vote
2 answers
546 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 - ...
starquake's user avatar
2 votes
1 answer
112 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 ...
duke's user avatar
  • 21
0 votes
1 answer
213 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.
JBC's user avatar
  • 3
1 vote
1 answer
118 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 ...
sebastian's user avatar
  • 417
5 votes
1 answer
89 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 ...
scribe's user avatar
  • 1,035
0 votes
2 answers
144 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 ...
gboffi's user avatar
  • 614
1 vote
1 answer
305 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 (...
AnoE's user avatar
  • 440
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 ...
deshmukh's user avatar
  • 1,912
0 votes
1 answer
163 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 ...
deshmukh's user avatar
  • 1,912
1 vote
1 answer
706 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 ...
ucsky's user avatar
  • 133
0 votes
0 answers
116 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-...
aks's user avatar
  • 145
0 votes
1 answer
225 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 ...
soap's user avatar
  • 103