mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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 ()
|
||||
|
Reference in New Issue
Block a user