Add systemd file for emacs daemon
authorJoerg Jaspert <joerg@debian.org>
Sat, 12 Dec 2015 22:42:58 +0000 (23:42 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 12 Dec 2015 22:42:58 +0000 (23:42 +0100)
.config/systemd/user/default.target.wants/emacs.service [new symlink]
.config/systemd/user/emacs.service [new file with mode: 0644]

diff --git a/.config/systemd/user/default.target.wants/emacs.service b/.config/systemd/user/default.target.wants/emacs.service
new file mode 120000 (symlink)
index 0000000..b8e9cca
--- /dev/null
@@ -0,0 +1 @@
+/home/joerg/.config/systemd/user/emacs.service
\ No newline at end of file
diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service
new file mode 100644 (file)
index 0000000..ca7e29b
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=Emacs: the extensible, self-documenting text editor
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/emacs --daemon
+ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
+Environment=TMPDIR=%h/tmp
+EnvironmentFile=%h/.gnupg/.gpg-agent.info
+Restart=always
+
+[Install]
+WantedBy=default.target