diff options
author | Alan Pearce | 2023-08-23 06:47:53 +0200 |
---|---|---|
committer | Alan Pearce | 2023-08-23 06:47:53 +0200 |
commit | adae41b88aac129353d88f83b66131fc74d0865e (patch) | |
tree | acab24e9187a68e9fa42c9ad75d485eb22b0d90b /user | |
parent | d969f3f9d43ac76d732d39b4dd3ffe34bc54a3c8 (diff) | |
download | nixfiles-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.el | 3 |
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 |