diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2024-05-11 09:28:09 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2024-05-11 09:28:09 +0100 |
commit | 912dba81a84ccfbaf0a8adf7e9b570aff686ed17 (patch) | |
tree | 7c6bcecfd1ae2acb6c07666f0c3aaa3df2f1ff3a | |
parent | 04f94bcc3793e492239a88d2c5c0955628af971a (diff) | |
download | dotfiles-912dba81a84ccfbaf0a8adf7e9b570aff686ed17.tar.gz |
fix adding to tramp-connection-properties & some tidying
-rw-r--r-- | .emacs.d/init.el | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index d30e76d3..ded5099d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1485,16 +1485,12 @@ the non-side windows deleted by `delete-other-windows' will also reappear." ;;;; TRAMP -(with-eval-after-load 'tramp - (add-to-list 'tramp-connection-properties - ;; Activate direct-async-process for all non-multihop SSH - ;; connections. - '("/ssh:" "direct-async-process" t) - ;; session-timeout is about dropping a connection for security - ;; reasons alone: never do that. - '(nil "session-timeout" nil)) - - (add-to-list 'tramp-remote-path 'tramp-own-remote-path)) +(spw/feature-add-to-list tramp-connection-properties tramp + ;; Activate `direct-async-process' for all non-multihop SSH connections. + '("/ssh:" "direct-async-process" t) + ;; Don't drop connections for security reasons alone. + '(nil "session-timeout" nil)) +(spw/feature-add-to-list tramp-remote-path tramp 'tramp-own-remote-path) (unless (string-match ; Emacs 28: unquote and `string-search' (regexp-quote tramp-file-name-regexp) vc-ignore-dir-regexp) |