Related and not answered:
另外我发现设置 epa-file-cache-passphrase-for-symmetric-encryption
对同一个 emacs 进程有效,另起一个 emacs 仍需重新输密码。我的最终目的是在使用 emacs-async 的时候少输密码,所以这个方案对这种场景不管用。我目前的想法是在 decrypt 时加一个 advice 起一个终端来让 gpg 输密码。
Related and not answered:
另外我发现设置 epa-file-cache-passphrase-for-symmetric-encryption
对同一个 emacs 进程有效,另起一个 emacs 仍需重新输密码。我的最终目的是在使用 emacs-async 的时候少输密码,所以这个方案对这种场景不管用。我目前的想法是在 decrypt 时加一个 advice 起一个终端来让 gpg 输密码。