epa-pinentry-mode -> epg-pinentry-mode

Because epa-pinentry-mode is deprecated in 27+
This commit is contained in:
Henrik Lissner 2020-04-23 16:52:54 -04:00
parent efa599f076
commit 09d344541f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -31,7 +31,10 @@
(after! epa
;; With GPG 2.1+, this forces gpg-agent to use the Emacs minibuffer to prompt
;; for the key passphrase.
(setq epa-pinentry-mode 'loopback)
(set (if EMACS27+
'epg-pinentry-mode
'epa-pinentry-mode) ; DEPRECATED `epa-pinentry-mode'
'loopback)
;; Default to the first secret key available in your keyring.
(setq-default
epa-file-encrypt-to