4 ms·
I used spacemacs for a bit a few months ago but launch-times were really long. I use emacs as my default editor and I really hated the bootstrapping process whe
by shriphani 11y ago
I used spacemacs for a bit a few months ago but launch-times were really long. I use emacs as my default editor and I really hated the bootstrapping process when I fired up emacs to edit a config from the command line.
If someone has a simple fix to this problem I would gladly use it since they seemed to have the right ingredients for a top notch experience.
- packetslave 11y agoemacs --daemon and EDITOR='emacsclient'
- leppr 11y agoalias emacs="emacsclient -nw -a ''" is the best I've found. -nw: Open a new frame in current terminal (otherwise it just opens the file in whatever other emacs window you already have launched). -a: Start the daemon if it isn't running. '': Little trick so you can launch it without a filename.
- philsnow 11y ago-a: Start the daemon if it isn't running. '': Little trick so you can launch it without a filename. Ha, if only. From the bit on `-a` in https://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html https://www.gnu.org/software/emacs/manual/html_node/emacs/em... : Specify a command to run if emacsclient fails to contact Emacs. This is useful when running emacsclient in a script. As a special exception, if command is the empty string, then emacsclient starts Emacs in daemon mode (as emacs --daemon) and then tries connecting again. `emacsclient -a vim` will run vim if it can't connect to a running daemon.
- chm 11y agoI noticed that using GUI Emacs in OSX, a first boot is slow and will open two windows: a Spacemacs buffer in one window, and the file in another. Subsequent files are opened much faster if you keep the Spacemacs buffer opened.
- pzone 11y agoTo clarify the other answers: you will want to run one or two emacs daemon instances at startup and then edit files using emacsclient, which hooks up to the background daemon and pops up a new window instantaneously.