diff options
author | Thanos Apollo <[email protected]> | 2025-03-15 15:39:59 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2025-03-15 15:39:59 +0200 |
commit | 858c3df80992a02e204ecd7bf728a85376f5d4a9 (patch) | |
tree | c53087a4b6e9ebb3c752f860c57feb17025d16a1 | |
parent | fbf7bcd833643750bf3a7f2baed892163941802d (diff) |
emacs: Update pinentry & epa config
-rw-r--r-- | .config/emacs/init.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 73d1346..7733476 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -74,8 +74,11 @@ ;; Pinentry (use-package pinentry - :defer t + :ensure t :config + (defun pinentry-emacs (desc prompt ok error) + (let ((str (read-passwd (concat (replace-regexp-in-string "%22" "\"" (replace-regexp-in-string "%0A" "\n" desc)) prompt ": ")))) + str)) (pinentry-start)) ;; PG Assistant @@ -83,8 +86,9 @@ :defer t :config (setf epa-keys-select-method 'minibuffer - epa-file-encrypt-to '("62B758D0F6719938BC09CECA339F736C3A720928"))) - + epa-file-encrypt-to '("62B758D0F6719938BC09CECA339F736C3A720928") + ;; Do not prompt for key selection, we are only using the above key. + epa-file-select-keys 'silent)) ;;;; Completions & Minibuffer |