summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
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