chiark / gitweb /
dot/emacs: Use `sudo' for local editing.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 4 Jun 2011 12:57:27 +0000 (13:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 4 Jun 2011 13:21:48 +0000 (14:21 +0100)
dot/emacs

index b278d9a613040a45f1e5ffbd20a3e5ea89333785..8832f3f71b41d3e9d95e8ea57c217dd1f3aa8397 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
      (setq tramp-default-method "ssh")
      (setq tramp-default-method-alist
           `(("\\`\\(localhost\\|\\)\\'" ""
-             ,(cond ((executable-find "become") "become")
-                    ((executable-find "really") "really")
+             ,(cond ((executable-find "really") "really")
+                    ((executable-find "become") "become")
+                    ((executable-find "sudo") "sudo")
                     (t "su")))))))
 
 ;;;--------------------------------------------------------------------------