From f507c2bfc8009ded0c17ab4c39d1a67a793f71b4 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Thu, 17 Apr 2014 10:34:26 +0200 Subject: [PATCH] configure sudo for tramp Signed-off-by: Andreas Gerler --- init.el | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.47.3