tramp: Use remotes PATH

Add `tramp-own-remote-path' to the front of `tramp-remote-path',
so that the configuration on the host that we are connecting to
is used when we are connecting to it.  That may be a tautology
but it's not the default.

This matters especially when connecting to an "usual" system,
such as Guix, as has been discussed a few times, including here:
https://lists.gnu.org/archive/html/help-guix/2016-10/msg00041.html
https://lists.gnu.org/archive/html/help-guix/2017-06/msg00106.html
https://lists.gnu.org/archive/html/help-guix/2017-07/msg00003.html
This commit is contained in:
Jonas Bernoulli 2020-03-04 18:17:26 +01:00
parent da54398e2e
commit a0540f27d9

View File

@ -162,6 +162,10 @@
vc-ignore-dir-regexp
tramp-file-name-regexp)))
(use-package tramp-sh
:defer t
:config (cl-pushnew 'tramp-own-remote-path tramp-remote-path))
(progn ; startup
(message "Loading %s...done (%.3fs)" user-init-file
(float-time (time-subtract (current-time)