about summary refs log tree commit diff
path: root/init/settings.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2015-05-21T10·03+0200
committerVincent Ambo <vincent@kivra.com>2015-05-21T10·03+0200
commit560176bc7789c2b0aa12b4dbab064f328c3454a5 (patch)
tree98e413f2658f9a29c2578d03bd622297a5675fea /init/settings.el
parentc2ef13da72a27822810a9823f208b4c4edf7f49b (diff)
Use GPG-agent's SSH agent (for Tramp etc.)
Diffstat (limited to 'init/settings.el')
-rw-r--r--init/settings.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/init/settings.el b/init/settings.el
index 72959026afc2..f58063a5dc70 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")