summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-02-03 19:34:37 +0100
committerAlan Pearce2016-02-03 19:34:37 +0100
commitd16f4df11a799ae990c07629f60a11d5ad8d22ba (patch)
tree5769800e6f561c9427b8d9aa7a951785920cfb4d
parent4a0710cba5943f961fd89385008e23984b0492e5 (diff)
downloaddotfiles-d16f4df11a799ae990c07629f60a11d5ad8d22ba.tar.lz
dotfiles-d16f4df11a799ae990c07629f60a11d5ad8d22ba.tar.zst
dotfiles-d16f4df11a799ae990c07629f60a11d5ad8d22ba.zip
Emacs: Set SSH_AUTH_SOCK
-rw-r--r--tag-emacs/emacs.d/init.org2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 0451fe7..2536223 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -680,6 +680,8 @@ that I can sudo on remote machines
   (use-package tramp
     :defer 7
     :config (progn
+              (unless (getenv "SSH_AUTH_SOCK")
+                (setenv "SSH_AUTH_SOCK" "/run/user/1000/ssh-agent.socket"))
               (setq tramp-default-method (if (eq system-type 'windows-nt) "plinkx" "ssh")
                     tramp-default-user-alist '(("\\`su\\(do\\)?\\'" nil "root"))
                     tramp-backup-directory-alist backup-directory-alist