summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2014-09-03 13:48:04 +0200
committerrekado <rekado@elephly.net>2014-09-03 13:48:04 +0200
commit1d2dc16252ebf7649a4e93fa24a1049cdae11992 (patch)
treeed0db7415c739581da324d6760d345d977922f8f /init.el
parent928dc209bdbdd621a44f3033a57cceb82b7daa9b (diff)
exclude localhost from tramp hopping rule
Diffstat (limited to 'init.el')
-rw-r--r--init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.el b/init.el
index bda128c..73634db 100644
--- a/init.el
+++ b/init.el
@@ -104,7 +104,9 @@
;; for root connections to remote hosts, log in via ssh with normal
;; user account first, then su/sudo to root
(add-to-list 'tramp-default-proxies-alist
- '(".*" "\\`root\\'" "/ssh:%h:"))
+ '(nil "\\`root\\'" "/ssh:%h:"))
+(add-to-list 'tramp-default-proxies-alist
+ '((regexp-quote (system-name)) nil nil))
;; Backup (file~) disabled and auto-save (#file#) locally to prevent delays in editing remote files
(add-to-list 'backup-directory-alist