diff options
author | Case Duckworth | 2022-01-02 10:26:29 -0600 |
---|---|---|
committer | Case Duckworth | 2022-01-02 10:27:17 -0600 |
commit | f505c9556cea98c64fd13da4d433a1ba4637cfb6 (patch) | |
tree | ab3840b455a7779ee5306b91ea850d1ae66f0c72 /systemd | |
parent | Add README.org (diff) | |
download | etc-f505c9556cea98c64fd13da4d433a1ba4637cfb6.tar.gz etc-f505c9556cea98c64fd13da4d433a1ba4637cfb6.zip |
Add emacs.service
Diffstat (limited to 'systemd')
-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 | ||