summaryrefslogtreecommitdiff
path: root/.config/systemd/user/emacs-daemon.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/emacs-daemon.service')
-rw-r--r--.config/systemd/user/emacs-daemon.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/systemd/user/emacs-daemon.service b/.config/systemd/user/emacs-daemon.service
index 4077e97..3869d75 100644
--- a/.config/systemd/user/emacs-daemon.service
+++ b/.config/systemd/user/emacs-daemon.service
@@ -3,8 +3,9 @@ Description=Emacs deamon
[Service]
Type=forking
-ExecStart=/bin/bash -l -c 'emacs --daemon'
-ExecStop=/bin/bash -l -c 'emacsclient -a false -e "(kill-emacs)"'
+ExecStart=/usr/bin/env emacs --daemon
+ExecStop=/usr/bin/env emacsclient -a false -e '(kill-emacs)'
+Restart=always
[Install]
WantedBy=default.target