all repos — nixfiles @ 6f7aee7f9c6b18b8fcd2e50423c955279760bb85

System and user configuration, managed by nix and home-manager

Emacs: Default to SSH socket from GnuPG
Alan Pearce alan@alanpearce.eu
Fri, 25 Aug 2017 23:40:40 +0200
commit

6f7aee7f9c6b18b8fcd2e50423c955279760bb85

parent

8f73546d05279d79027e0583bac1598d116e484e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -840,7 +840,7 @@ (use-package tramp   :defer 7
   :config (progn
             (unless (getenv "SSH_AUTH_SOCK")
-              (setenv "SSH_AUTH_SOCK" (format "/run/user/%s/ssh-agent" (user-uid))))
+              (setenv "SSH_AUTH_SOCK" (format "/run/user/%s/gnupg/S.gpg-agent.ssh" (user-uid))))
             (setq tramp-default-method "ssh"
                   tramp-default-user-alist '(("\\`su\\(do\\)?\\'" nil "root"))
                   tramp-backup-directory-alist backup-directory-alist