all repos — archive/dotfiles @ d16f4df11a799ae990c07629f60a11d5ad8d22ba

Superseded by nixfiles

Emacs: Set SSH_AUTH_SOCK
Alan Pearce alan@alanpearce.co.uk
Wed, 03 Feb 2016 19:34:37 +0100
commit

d16f4df11a799ae990c07629f60a11d5ad8d22ba

parent

4a0710cba5943f961fd89385008e23984b0492e5

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

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -680,6 +680,8 @@ #+BEGIN_SRC emacs-lisp   (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