From a0540f27d98f6de137e72cfc9af8d9725027d4da Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 4 Mar 2020 18:17:26 +0100 Subject: [PATCH] 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 --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index 0fe806e..350614d 100644 --- a/init.el +++ b/init.el @@ -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)