summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-08-23 06:47:53 +0200
committerAlan Pearce2023-08-23 06:47:53 +0200
commitadae41b88aac129353d88f83b66131fc74d0865e (patch)
treeacab24e9187a68e9fa42c9ad75d485eb22b0d90b /user
parentd969f3f9d43ac76d732d39b4dd3ffe34bc54a3c8 (diff)
downloadnixfiles-adae41b88aac129353d88f83b66131fc74d0865e.tar.lz
nixfiles-adae41b88aac129353d88f83b66131fc74d0865e.tar.zst
nixfiles-adae41b88aac129353d88f83b66131fc74d0865e.zip
Emacs: ensure SSH_AUTH_SOCK is set on Linux
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 0bfcf64a..1049b84a 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -760,6 +760,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 
 (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
 
+(when (eq system-type 'gnu/linux)
+  (setenv "SSH_AUTH_SOCK" (expand-file-name "ssh-agent" (getenv "XDG_RUNTIME_DIR"))))
+
 (use-package fish-mode
   :mode (("\\.fish\\'" . fish-mode))
   :config (progn