Add tramp-own-remote-path to tramp-remote-path

Makes tramp consider the remote's PATH when searching for executables.
This commit is contained in:
Henrik Lissner 2020-08-03 15:00:47 -04:00
parent 15e156294f
commit 439999cb66
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -91,7 +91,11 @@ possible."
backup-directory-alist `((".*" . ,(concat doom-cache-dir "backup/"))))
(after! tramp
(add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil)))
;; 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-hook! 'after-save-hook
(defun doom-guess-mode-h ()