Skip to content

Instantly share code, notes, and snippets.

Last active July 29, 2023 16:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gbraad/6849b3de881c5efd12de4537d89a5c3c to your computer and use it in GitHub Desktop.
Emacs as a service

Emacs as a service

$ touch /etc/systemd/system/emacs.service
$ chmod 664 /etc/systemd/system/emacs.service


Description=Emacs: the extensible, self-documenting text editor
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
$ systemctl daemon-reload
$ systemctl start emacs.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment