# HG changeset patch # User Augie Fackler # Date 1601237496 14400 # Node ID 1944a98a677488aa1dac3f6f23e8f395127c7710 # Parent d3d52766cfcd63515414f7f9e8619c18453f410d# Parent 1bb1c44ce49c8dc660591113e935723e436da1b4 merge diff --git a/.config/systemd/user/emacs.service b/.config/systemd/user/emacs.service 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