From 763262b2a3a16c1f4e51d581cf1a458bd9800e27 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 22 Jul 2019 23:58:16 +0200 Subject: [PATCH] tools/pass: conform to new conventions --- modules/tools/pass/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tools/pass/config.el b/modules/tools/pass/config.el index e76a49081..1dec2e31e 100644 --- a/modules/tools/pass/config.el +++ b/modules/tools/pass/config.el @@ -14,13 +14,13 @@ (setq password-store-password-length 12) ;; Fix hard-coded password-store location; respect PASSWORD_STORE_DIR envvar -(defun +pass*read-entry (entry) +(def-advice! +pass-read-entry-a (entry) "Return a string with the file content of ENTRY." + :override #'auth-source-pass--read-entry (with-temp-buffer (insert-file-contents (expand-file-name (format "%s.gpg" entry) (password-store-dir))) (buffer-substring-no-properties (point-min) (point-max)))) -(advice-add #'auth-source-pass--read-entry :override #'+pass*read-entry) ;; `pass'