2016-11-13 15:46:31 -08: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]
|
2016-11-15 23:28:47 -08:00
|
|
|
Type=simple
|
2017-05-29 22:13:53 -04:00
|
|
|
ExecStart=emacs --fg-daemon
|
2016-11-13 15:46:31 -08:00
|
|
|
ExecStop=emacsclient --eval "(kill-emacs)"
|
|
|
|
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|