summaryrefslogtreecommitdiffstats
path: root/.config/systemd/user/emacs.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/emacs.service')
-rw-r--r--.config/systemd/user/emacs.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service
new file mode 100644
index 0000000..d611118
--- /dev/null
+++ b/.config/systemd/user/emacs.service
@@ -0,0 +1,11 @@
+[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