From 1d2dc16252ebf7649a4e93fa24a1049cdae11992 Mon Sep 17 00:00:00 2001 From: rekado Date: Wed, 3 Sep 2014 13:48:04 +0200 Subject: exclude localhost from tramp hopping rule --- init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init.el') 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 -- cgit v1.2.3