From 4e6b191afe6e4b9b5a047cedde65cbdde7fb7b09 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 12 May 2019 23:19:16 -0400 Subject: [PATCH] Fix emacs systemd config --- .../.config/systemd/user/default.target.wants/emacs.service | 1 - systemd/.config/systemd/user/emacs.service | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 120000 systemd/.config/systemd/user/default.target.wants/emacs.service 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