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

Questions tagged [start-up]

About starting and initializing an Emacs session

37 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
3k views

Extremely slow startup on Windows - How to debug?

I have a serious problem with an extremely slow spacemacs startup (emacs-init-time = ~200s). (The server works, but this is so slow I cannot debug some other problems that I am trying to fix) My ...
guest's user avatar
  • 41
3 votes
0 answers
551 views

Startup Emacs Daemon With Elfeed (RSS Feed Reader) Buffer

What I would like to accomplish is this: Allow emacs daemon to start with my start up applications like normal When I open an emacs frame I would like only the first one to start with my rss news ...
Jesse's user avatar
  • 267
3 votes
0 answers
103 views

Emacs Trunk: How to prevent creation of home directories in `load-path`

In the Emacs Trunk build -- i.e., built --with-ns, I have the following entries that get added automatically to my load-path when launching without any user configuration: "." "./Applications" "./...
lawlist's user avatar
  • 19.2k
2 votes
0 answers
833 views

How to diagnose emacs hanging and 100% cpu on startup?

How can I diagnose this issue? I've tried using strace and I see the following that seems to be stuck in a loop: recvfrom(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., ...
Chris Stryczynski's user avatar
2 votes
0 answers
562 views

Emacs times out trying to read from /dev/tty on startup?

After several years of being annoyed of Emacs on Ubuntu (not Mac via brew) having a ~2-3 second delay before displaying file contents at startup I finally decided to debug this. I ran strace -r emacs ...
Oscar's user avatar
  • 121
1 vote
1 answer
359 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
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
1 answer
381 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
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
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
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
1 vote
0 answers
190 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-...
Ole's user avatar
  • 141
1 vote
0 answers
185 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 ...
Gilles 'SO- stop being evil''s user avatar
1 vote
0 answers
185 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 ...
Joe's user avatar
  • 571
1 vote
0 answers
576 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. ...
mclear's user avatar
  • 1,555
1 vote
0 answers
62 views

If I move frame during Emacs startup, it moves back at the end of startup

I have a fairly long startup for Emacs 24.4 on Microsoft Windows 7. I try to move the frame where I want it during startup, but it snaps back after all the startup code is done running. I don't appear ...
Michael Hoffman's user avatar
0 votes
1 answer
89 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
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
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
0 votes
0 answers
263 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
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
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
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
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
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
0 answers
117 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
0 answers
243 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 [email protected] which was installed by homebrew: d12frosted/emacs-plus/emacs-plus@27: stable 27.0.91, HEAD /usr/local/...
cmal's user avatar
  • 775
0 votes
0 answers
64 views

Running a single Emacs instance

I'd like to set in my dot-emacs a function to detect if an Emacs instance is already running, possibly exiting Emacs informing user. To do this I should query the OS for running processes. However (...
antonio's user avatar
  • 1,822
0 votes
0 answers
519 views

Error when initializing Emacs

This is what I get when starting Emacs from terminal with emacs --debug-init. I don't know the reason why emacs suddenly started to not working. Debugger entered--Lisp error: (wrong-type-argument ...
sbac's user avatar
  • 419
0 votes
0 answers
108 views

What's the value of default-directory during startup?

I'm looking through startup.el, and normal-top-level-add-subdirs-to-load-path references the default-directory variable. What's the value of that variable during startup? I searched for calls to ...
ivan's user avatar
  • 1,948
0 votes
0 answers
246 views

How can I make the initial frame invisible?

Using the following command line causes Emacs to briefly display the initial frame, then hide it: emacs -Q --eval "(setq initial-frame-alist '((visibility . nil)))" This is consistent with the ...
Clément's user avatar
  • 3,995
0 votes
0 answers
645 views

Troubleshooting a blank window

I've run into a bit of an issue that I'm having trouble resolving. I use quite a few packages, one of which is ESS. The latest update to ESS seems to run into issues when trying to install. All I ...
Ryan's user avatar
  • 4,049
0 votes
0 answers
89 views

Starting Emacs on OSX stuck

When lots of application running, emacs doesn't start. Icon appears on dock but application doesn't show up. If I quit some apps and retry to start emacs, it works flawlessly. Is the any chance to ...
Hubidubi's user avatar
  • 213
0 votes
0 answers
101 views

Stop Emacs from adding all subdirs to default-directory

I'm having trouble stopping Emacs from loading all packages in my default-directory. When I call c-h v load-packages I get a listing of all subdirectories inside my elpa directory, which I want to ...
NVaughan's user avatar
  • 1,481
0 votes
3 answers
2k 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 ...
user avatar