From 7638bd3968d5a3aeffa5421e786ccf15edc0d731 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 3 Aug 2020 20:29:41 -0400 Subject: [PATCH] Revert 439999cb6 I had incorrectly assumed tramp-own-remote-path would prepend the remote system's PATH to tramp's exec-path, but it does not, it prepends your local machine's PATH onto it. tramp-default-remote-path was what I was looking for and it is already in tramp-remote-path by default. If tramp can't find a program on the remote it's because either the remote doesn't support getconf (which tramp uses to scrape the remote PATH), or your PATH on the remote has been incorrectly configured. --- core/core-editor.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index c468f7b98..40e59d6ff 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -93,9 +93,7 @@ possible." (after! tramp ;; Backing up files on remotes can be incredibly slow and prone to a variety ;; of IO errors. Better to disable it altogether in tramp buffers: - (add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil)) - ;; Add the remote's PATH to tramp's search path (why isn't this the default?) - (add-to-list 'tramp-remote-path 'tramp-own-remote-path)) + (add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil))) (add-hook! 'after-save-hook (defun doom-guess-mode-h ()