2016-11-13 23:46:31 +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]
|
2018-06-09 13:01:08 +00:00
|
|
|
Type=notify
|
2017-05-30 02:13:53 +00:00
|
|
|
ExecStart=emacs --fg-daemon
|
2016-11-13 23:46:31 +00:00
|
|
|
ExecStop=emacsclient --eval "(kill-emacs)"
|
|
|
|
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|