From 560176bc7789c2b0aa12b4dbab064f328c3454a5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 21 May 2015 12:03:46 +0200 Subject: [PATCH] Use GPG-agent's SSH agent (for Tramp etc.) --- init/settings.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init/settings.el b/init/settings.el index 72959026a..f58063a5d 100644 --- a/init/settings.el +++ b/init/settings.el @@ -31,6 +31,9 @@ ;; Bash is the reliable one here (setq multi-term-program "/bin/bash") +;; Use the GPG-provided SSH agent +(setenv "SSH_AUTH_SOCK" (concat (getenv "HOME") "/.gnupg/S.gpg-agent.ssh")) + ;;; Code: (add-to-list 'exec-path "/usr/local/bin")