about summary refs log tree commit diff stats
path: root/systemd/user/emacs.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/user/emacs.service')
-rw-r--r--systemd/user/emacs.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/user/emacs.service b/systemd/user/emacs.service new file mode 100644 index 0000000..6a333d4 --- /dev/null +++ b/systemd/user/emacs.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=Emacs text editor
3Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
4
5[Service]
6Type=forking
7ExecStart=/usr/bin/emacs --daemon
8ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
9Restart=on-failure
10
11[Install]
12WantedBy=default.target \ No newline at end of file