Skip to content

Instantly share code, notes, and snippets.

@DrBluefall
Created June 3, 2020 06:44
Show Gist options
  • Save DrBluefall/6a9fa202f6139dbd11c261823f1499a1 to your computer and use it in GitHub Desktop.
Save DrBluefall/6a9fa202f6139dbd11c261823f1499a1 to your computer and use it in GitHub Desktop.
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=forking
ExecStart=/usr/local/bin/emacs --daemon
ExecStop=/usr/local/bin/emacsclient --eval "(kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment