[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm d4170e4152 3/5: Ensure tramp read persistent data in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm d4170e4152 3/5: Ensure tramp read persistent data in emacs-helm.sh |
Date: |
Wed, 15 Jun 2022 09:05:08 -0400 (EDT) |
branch: elpa/helm
commit d4170e41522725d4e4a23e59e307dfa77ab2fb4f
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Ensure tramp read persistent data in emacs-helm.sh
Without this tramp prompt constantly for password each time an input
is detected.
With this change, even with no entries in auth-source file tramp
prompt only once for password at start.
Also set auth-source to NOT ask to save password for this connection
in auth-source file (and don't do it), we don't want to have this file
edited at all.
---
emacs-helm.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/emacs-helm.sh b/emacs-helm.sh
index 592705eb5e..c3020ea8bd 100755
--- a/emacs-helm.sh
+++ b/emacs-helm.sh
@@ -234,6 +234,8 @@ cat > $CONF_FILE <<EOF
(blink-cursor-mode -1)
(require 'helm-config)
(helm-mode 1)
+(with-eval-after-load 'tramp-cache (setq tramp-cache-read-persistent-data t))
+(with-eval-after-load 'auth-source (setq auth-source-save-behavior nil))
(define-key global-map [remap find-file] 'helm-find-files)
(define-key global-map [remap occur] 'helm-occur)
(define-key global-map [remap list-buffers] 'helm-buffers-list)