changeset 496:1944a98a6774

merge
author Augie Fackler <raf@durin42.com>
date Sun, 27 Sep 2020 16:11:36 -0400
parents d3d52766cfcd (current diff) 1bb1c44ce49c (diff)
children 2ea29b487b06
files
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/.config/systemd/user/emacs.service
@@ -0,0 +1,15 @@
+# systemctl enable --user emacs
+# systemctl start --user emacs
+[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