aboutsummaryrefslogtreecommitdiff
path: root/SystemD/.config/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'SystemD/.config/systemd')
-rw-r--r--SystemD/.config/systemd/user/emacs.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/SystemD/.config/systemd/user/emacs.service b/SystemD/.config/systemd/user/emacs.service
new file mode 100644
index 0000000..c410445
--- /dev/null
+++ b/SystemD/.config/systemd/user/emacs.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Emacs
+
+[Service]
+Type=forking
+ExecStart=/usr/local/bin/emacs --bg-daemon=MAIN
+ExecStop=/usr/local/bin/emacsclient --socket-name=MAIN --eval "(kill-emacs)"
+Restart=on-failure
+TimeoutStartSec=0
+
+[Install]
+WantedBy=default.target