workstation/roles/home-gui/templates/emacs.service

18 lines
592 B
SYSTEMD
Raw Permalink Normal View History

2020-03-08 22:09:14 +00:00
## If your Emacs is installed in a non-standard location, you may need
## to copy this file to a standard directory, eg ~/.config/systemd/user/ .
## If you install this file by hand, change the "Exec" lines below
## to use absolute file names for the executables.
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=forking
ExecStart={{ prefix }}/bin/emacs --daemon
2020-07-11 16:23:54 +00:00
ExecStop={{ prefix }}/bin/emacsclient --eval "(kill-emacs)"
2020-03-08 22:09:14 +00:00
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure
[Install]
WantedBy=default.target