Commit 3f18eddf47e0

Vincent Demeester <vincent@sbr.pm>
2020-08-21 14:39:11
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>
1 parent af369a5
Changed files (1)
tools
emacs
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"))