3 ms·
The best way to run emacs IMO is to use "emacs --daemon" to spawn a single daemon process, and then connect to it using emacsclient. Then, startup time is insta
by jdreaver 11y ago
The best way to run emacs IMO is to use "emacs --daemon" to spawn a single daemon process, and then connect to it using emacsclient. Then, startup time is instant!
- dominotw 11y agothen you have to maintain/monitor that daemon, seems like too much work.
- cle 11y agoIf only someone made something that could monitor daemons and make sure they stay running...
- dominotw 11y agothen you have maintain that thing that monitors the daemons.
- unsignedint 11y agoIf your system is using systemd, you can create a service file that does that under --user. I manage some user daemons that way.
- deleted 11y ago[deleted]
- davexunit 11y agoI use the GNU Shepherd init system as an unprivileged user to manage my emacs daemon, and other things like gpg-agent. The real benefit of 'emacs --daemon', for me, isn't the faster client startup time, but the unification of the many programs that may spawn $EDITOR. Rather than each one spawning a new Emacs process, these programs spawn a client in the window I already have open where I can access everything else I was working on. On top of that, I use the ItsAllText extension for Firefox to edit text fields inside of that same Emacs instance, too. Very convenient.
- jdreaver 11y agoWhat? You literally just call emacs --daemon on startup. You can also easily kill it and restart it.
- sigjuice 11y agoThe first line of my ~/.emacs is (start-server). /usr/bin/emacs is launched once and runs forever. I spend nearly all my time in emacs, so there is nothing to maintain/monitor. If emacs dies, it is rather obvious.
- josteink 11y ago> then you have to maintain/monitor that daemon, seems like too much work. This thread over at reddit may kill your concerns :) https://www.reddit.com/r/emacs/comments/45mtdz/can_someone_explain_why_emacsclient_requires_a/ https://www.reddit.com/r/emacs/comments/45mtdz/can_someone_e...