From 8a7a3a8c7d4ee015321c304605240a313d9dd2ff Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 13 Mar 2018 16:47:48 +0100 Subject: [PATCH] Emacs: sudo over tramp and longer password caching --- emacs/emacs.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emacs/emacs.el b/emacs/emacs.el index 40bab0b..436251b 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -1210,7 +1210,9 @@ (use-package tramp :init ;; Set default connection method for TRAMP - (setq tramp-default-method "ssh")) + (setq tramp-default-method "ssh") + (require 'em-tramp) + (setq password-cache-expiry 3600)) ;; telephone-line ;; A new implementation of Powerline for Emacs