Emacs you daemon
Emacs you little daemon
So yeah, I've been using doom emacs for blogging and other bits of programming. I have no idea how this happened. I guess I just started playing with it and stuck with it. Now I want emacs to boot fast, so I just keep it running in the background. There are two bits of magic which will do that, first is this file :
Note : There are multiple ways to get this setup on linx and macos.
~/.config/systemd/user/emacs.service
[Unit]
Description=Emacs Daemon
[Service]
Type=notify
Type=notify
ExecStart=/usr/bin/emacs --fg-daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Restart=on-failure
[Install]
WantedBy=default.target
Next is this :
$ systemctl --user enable --now emacs