summaryrefslogtreecommitdiffstats
path: root/sysemd/.config/systemd/user/emacs.service
diff options
context:
space:
mode:
Diffstat (limited to 'sysemd/.config/systemd/user/emacs.service')
-rw-r--r--sysemd/.config/systemd/user/emacs.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysemd/.config/systemd/user/emacs.service b/sysemd/.config/systemd/user/emacs.service
new file mode 100644
index 0000000..5436721
--- /dev/null
+++ b/sysemd/.config/systemd/user/emacs.service
@@ -0,0 +1,12 @@
+# -*- mode: conf-unix; -*-
+[Unit]
+Description=Emacs: the extensible, self-documenting text editor
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/emacs --daemon
+ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
+Restart=always
+
+[Install]
+WantedBy=default.target