summaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-03-06 11:20:53 +0100
committerMartin Polden <mpolden@mpolden.no>2022-03-06 11:20:53 +0100
commit73c292698d04073c40238643898e18d79e641748 (patch)
tree1e470e7a7c1fdaf91a61dcdcab82c8a7857285f6 /lisp
parente4b6d78f2a95b68cf031d4e70b4b12aab50b85d7 (diff)
tramp: Use path configured by remote host
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-tramp.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/init-tramp.el b/lisp/init-tramp.el
index 8536253..97e1caa 100644
--- a/lisp/init-tramp.el
+++ b/lisp/init-tramp.el
@@ -47,7 +47,9 @@ With a prefix ARG prompt edit currently visited file using sudo."
;; make sudo:remote-host work as expected
(add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" "/ssh:%h:"))
(add-to-list 'tramp-default-proxies-alist
- '((regexp-quote (system-name)) nil nil)))
+ '((regexp-quote (system-name)) nil nil))
+ ;; use path configured by remote host
+ (add-to-list 'tramp-remote-path 'tramp-own-remote-path))
(provide 'init-tramp)