]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
configure sudo for tramp
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 17 Apr 2014 08:34:26 +0000 (10:34 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 17 Apr 2014 08:34:26 +0000 (10:34 +0200)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
init.el

diff --git a/init.el b/init.el
index 0d225923d86da5c0c604e7f137c5f000f702c5a0..9d0f02387960e6de98ef9911d57daf0f4315ad47 100644 (file)
--- 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)