diff --git a/systemd/.config/systemd/user/default.target.wants/emacs.service b/systemd/.config/systemd/user/default.target.wants/emacs.service deleted file mode 120000 index bebf0b3..0000000 --- a/systemd/.config/systemd/user/default.target.wants/emacs.service +++ /dev/null @@ -1 +0,0 @@ -/home/powellc/.config/systemd/user/emacs.service \ No newline at end of file diff --git a/systemd/.config/systemd/user/emacs.service b/systemd/.config/systemd/user/emacs.service index d611118..77ed538 100644 --- a/systemd/.config/systemd/user/emacs.service +++ b/systemd/.config/systemd/user/emacs.service @@ -5,7 +5,8 @@ Description=Emacs: the extensible, self-documenting text editor Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" -Restart=always +Environment=SSH_AUTH_SOCK=%t/keyring/ssh +Restart=on-failure [Install] WantedBy=default.target