summaryrefslogtreecommitdiff
path: root/.config/systemd/user/emacs-daemon.service
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-01-01 16:41:56 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-01-01 16:41:56 -0500
commit6a5bd645c59b44ae87d09cf350b38e04fbf99d81 (patch)
tree2d569608243e6716b7798f1a8e722f213c36a041 /.config/systemd/user/emacs-daemon.service
parent3fed229c02272767ad4b925afcbf73f43be0afbe (diff)
add changes in .conf/systemd
Diffstat (limited to '.config/systemd/user/emacs-daemon.service')
-rw-r--r--.config/systemd/user/emacs-daemon.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/systemd/user/emacs-daemon.service b/.config/systemd/user/emacs-daemon.service
new file mode 100644
index 0000000..279d83a
--- /dev/null
+++ b/.config/systemd/user/emacs-daemon.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Emacs deamon
+
+[Service]
+Type=forking
+ExecStart=/bin/bash -l -c 'emacs --daemon'
+ExecStop=/bin/bash -l -c 'emacsclient -e "(kill-emacs)"'
+
+[Install]
+WantedBy=default.target