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=simple
|
2020-07-11 16:22:27 +00:00
|
|
|
ExecStart={{ prefix }}/emacs --fg-daemon
|
|
|
|
ExecStop={{ prefix }}/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
|