From 67cab027564f0e932d93e73d4997e3a09f208482 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 10 Sep 2016 12:47:31 +0200 Subject: Emacs: Use ssh for tramp connections --- tag-emacs/emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 824fa08..40509d1 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -654,7 +654,7 @@ that I can sudo on remote machines :config (progn (unless (getenv "SSH_AUTH_SOCK") (setenv "SSH_AUTH_SOCK" "/run/user/1000/ssh-agent.socket")) - (setq tramp-default-method (if (eq system-type 'windows-nt) "plinkx" "ssh") + (setq tramp-default-method "ssh" tramp-default-user-alist '(("\\`su\\(do\\)?\\'" nil "root")) tramp-backup-directory-alist backup-directory-alist backup-enable-predicate (lambda (name) -- cgit 1.4.1