aboutsummaryrefslogtreecommitdiff
path: root/SystemD/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-03-25 09:21:24 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-03-25 09:21:24 +0000
commit3d082100539b666d95877f8189e548c90f97dc29 (patch)
treee3d712c02742597dd3e05c23a99d48bd695b3924 /SystemD/.config
parent2f0734b6f212d7be0c6a014d677c845d6a563f25 (diff)
downloaddotfiles-3d082100539b666d95877f8189e548c90f97dc29.tar.gz
dotfiles-3d082100539b666d95877f8189e548c90f97dc29.tar.bz2
dotfiles-3d082100539b666d95877f8189e548c90f97dc29.zip
(SystemD)+emacs service as part of new SystemD module
Diffstat (limited to 'SystemD/.config')
-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