You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.9 KiB
1.9 KiB
Pinentry
Handle GPG pinentry within Emacs.
Setup
When the gpg-agent
loads it will read the configuration at ~/.gnupg/gpg-agent.conf
. Override the default settings to allow Emacs to function as the Pinentry application.
allow-emacs-pinentry allow-loopback-pinentry
You may need to restart the gpg-agent
to load the configuration without rebooting.
gpgconf --reload gpg-agent
Config
Create the symbolic link to the configuration file.
(dotfiles/symlink "~/.emacs.d/config/gpg-agent.conf" "~/.gnupg/gpg-agent.conf")
With the pinentry
package for Emacs prompts will now appear in the minibuffer. Increase the minimum prime bit size to increase performance during symmetric encryption.
(use-package pinentry :custom (epa-file-select-keys 2) (gnutls-min-prime-bits 4096) (epa-pinentry-mode 'loopback) (epa-file-encrypt-to dotfiles/public-key) (epa-file-cache-passphrase-for-symmetric-encryption t) :config (pinentry-start))
Override org-agenda-file-regexp
to include .org.gpg
files.
(unless (string-match-p "\\.gpg" org-agenda-file-regexp) (setq org-agenda-file-regexp (replace-regexp-in-string "\\\\\\.org" "\\\\.org\\\\(\\\\.gpg\\\\)?" org-agenda-file-regexp)))