aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/emacs.service
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-09-13 14:58:20 +0100
committerMatthew Lemon <y@yulqen.org>2023-09-13 14:58:20 +0100
commitdcac65c102616ef3db3f50d6345e1a92f4af7d10 (patch)
treef997b36db27c3b723a2ef00a423b524aa75278d8 /systemd/emacs.service
parentbe3e08f801ecb5cbe71d5d95191c4c419506c807 (diff)
emacs daemon now a systemd service and bashr sees emacs as default
Diffstat (limited to '')
-rw-r--r--systemd/emacs.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd/emacs.service b/systemd/emacs.service
new file mode 100644
index 0000000..d228c89
--- /dev/null
+++ b/systemd/emacs.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Emacs text editor
+Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/emacs --daemon
+ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
+Environment=SSH_AUTH_SOCK=%t/keyring/ssh
+Restart=on-failure
+
+[Install]
+WantedBy=default.target \ No newline at end of file