diff options
-rw-r--r-- | systemd/user/emacs.service | 12 |
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] | ||
2 | Description=Emacs text editor | ||
3 | Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=/usr/bin/emacs --daemon | ||
8 | ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" | ||
9 | Restart=on-failure | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=default.target \ No newline at end of file | ||