all repos — archive/dotfiles @ fbf0bb2fb22697ea5135542837dcb12181817321

Superseded by nixfiles

Emacs: fix tramp proxy for local machine

Incorrect quoting form
Alan Pearce ap@studio-40.com
Sat, 31 May 2014 17:45:05 +0100
commit

fbf0bb2fb22697ea5135542837dcb12181817321

parent

08aea4ba64f3a076b51c9da88be619aa96fa90a4

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -300,7 +300,7 @@ (when (stringp method)                                                           (member method '("su" "sudo")))))))
                   tramp-shell-prompt-pattern "\\(?:^\\|
\\)[^#$%>\n]*#?[#$%>›] *\\(\\[[0-9;]*[a-zA-Z] *\\)*")
             (add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" (concat "/" tramp-default-method ":%h:")))
-            (add-to-list 'tramp-default-proxies-alist '((regexp-quote (system-name)) nil nil))
+            (add-to-list 'tramp-default-proxies-alist `(,(regexp-quote (system-name)) nil nil))
             (add-to-list 'tramp-default-proxies-alist '("localhost" nil nil))
             (add-to-list 'tramp-default-proxies-alist '("router" nil nil))))