GPG 用密码加密文件后,emacs 每次解密都需要输入密码。

emacs 支持用 emacs 自身作为 pinentry。

配置 epg-pinentry-mod 变量为 loopback。

具体的可以看官方文档