emacs.service 228 B

1234567891011
  1. [Unit]
  2. Description=Emacs Daemon
  3. [Service]
  4. Type=forking
  5. ExecStart=/usr/bin/emacs --daemon
  6. ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))"
  7. Restart=always
  8. [Install]
  9. WantedBy=default.target