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:
parent
15e156294f
commit
439999cb66
1 changed files with 5 additions and 1 deletions
|
@ -91,7 +91,11 @@ possible."
|
||||||
backup-directory-alist `((".*" . ,(concat doom-cache-dir "backup/"))))
|
backup-directory-alist `((".*" . ,(concat doom-cache-dir "backup/"))))
|
||||||
|
|
||||||
(after! tramp
|
(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
|
(add-hook! 'after-save-hook
|
||||||
(defun doom-guess-mode-h ()
|
(defun doom-guess-mode-h ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue