From: Mark Wooding Date: Sat, 4 Jun 2011 12:57:27 +0000 (+0100) Subject: dot/emacs: Use `sudo' for local editing. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/90390240487da0045dac91f05098c59d0cc45981?hp=-c dot/emacs: Use `sudo' for local editing. --- 90390240487da0045dac91f05098c59d0cc45981 diff --git a/dot/emacs b/dot/emacs index b278d9a..8832f3f 100644 --- a/dot/emacs +++ b/dot/emacs @@ -602,8 +602,9 @@ (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"))))))) ;;;--------------------------------------------------------------------------