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.
This commit is contained in:
parent
6e702a435a
commit
7638bd3968
1 changed files with 1 additions and 3 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue