From cd7c34edd007c5e392b9d1158d0c65ed3616dc6c Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Tue, 7 Jul 2015 14:12:02 +0200 Subject: [PATCH] tramp: add ~/bin/ to remote-path and use method "sshx". Signed-off-by: Andreas Gerler --- bba.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bba.org b/bba.org index c4ca765b..dd91292a 100644 --- a/bba.org +++ b/bba.org @@ -965,7 +965,8 @@ You may start it at the end of the config file. #+BEGIN_SRC emacs-lisp (load-library "tramp") - (setq default-tramp-method "sftp") + (add-to-list 'tramp-remote-path "~/bin") + (setq default-tramp-method "sshx") #+END_SRC With this you can do /sudo:ssh-host:file-on-ssh-host -- 2.47.3