From: Andreas Gerler Date: Thu, 17 Apr 2014 08:34:26 +0000 (+0200) Subject: configure sudo for tramp X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=f507c2bfc8009ded0c17ab4c39d1a67a793f71b4;p=emacsconfig.git configure sudo for tramp Signed-off-by: Andreas Gerler --- diff --git a/init.el b/init.el index 0d225923..9d0f0238 100644 --- a/init.el +++ b/init.el @@ -206,6 +206,9 @@ load-path)) (load-library "tramp") (setq default-tramp-method "sftp") +;; with this you can do /sudo:ssh-host:file-on-ssh-host +(add-to-list 'tramp-default-proxies-alist '(".*" "\`root\'" "/ssh:%h:")) + ;;; * twitter http://www.twmode.sourceforge.net/ (add-to-list 'load-path "~/.xemacs/xemacs-packages/lisp/twittering-mode-3.0.0") (require 'twittering-mode)