commit 3f18eddf47e078d18748bce9b60a0b507cf2ece3
parent af369a57a4973bb51c42756d42ba09531b415b01
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 21 Aug 2020 14:39:11 +0200
tools/emacs: tramp ssh enhancements
- Set default-method to ssh, faster than sc
- Use the ssh configuration instead of setting controlmaster manually
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-shells.el b/tools/emacs/config/config-shells.el
@@ -293,6 +293,8 @@ toggle, the current window configuration is saved in a register."
(use-package tramp
:defer t
:config
+ (setq-default tramp-use-ssh-controlmaster-options nil ; Don't override SSH config.
+ tramp-default-method "ssh") ; ssh is faster than scp and supports ports.
(add-to-list 'tramp-remote-path "/run/current-system/sw/bin")
(add-to-list 'tramp-remote-path "~/.nix-profile/bin")
(add-to-list 'tramp-remote-path "~/bin"))