From 439999cb667687dabc582f8665134fee6172d482 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 3 Aug 2020 15:00:47 -0400 Subject: [PATCH] Add tramp-own-remote-path to tramp-remote-path Makes tramp consider the remote's PATH when searching for executables. --- core/core-editor.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index f0106dea8..c468f7b98 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -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 ()