Explicitly set TRAMP default method

Using sshx as default on non-Windows systems seems to be a more robust choice
than using ssh, because the latter might be prone to errors caused by my
user-specific shell configuration.  And while we are at it, using plink on
Windows is more reasonable than using ssh, at least in my working environment.
Daniel Borchmann 2021-02-14 12:58:50 +01:00
parent 8039aad605
commit 532a2330af
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 1 deletions

View File

@ -559,7 +559,8 @@
browse-url-generic-program "firefox"))
(use-package tramp
:init (setq tramp-save-ad-hoc-proxies t))
:init (setq tramp-save-ad-hoc-proxies t
tramp-default-method (if on-windows "plink" "sshx")))
(use-package calc
;; https://florian.adamsky.it/2016/03/31/emacs-calc-for-programmers-and-cs.html