Enabling pinentry in Doom Emacs
I sometimes use emacs
remotely via mosh
, and in those situations I cannot
depend on the graphical pinentry
. Fortunately, the pinentry package
(available at GNU ELPA) enables emacs
to talk the pinentry protocol, and
interface with the gpg-agent
directly.
I found useful instructions to set it up under Doom Emacs on its GitHub issue #4647, with minor adjustments:
allow-emacs-pinentry
(package! pinentry)
(use-package! pinentry
:init (setq epg-pinentry-mode `loopback)
(pinentry-start))
Tags
doom
emacs
gnupg