diff options
author | 2020-01-08 01:05:54 -0500 | |
---|---|---|
committer | 2020-01-08 01:05:54 -0500 | |
commit | a89c8bd86f292f36af628f0b5306c0a3dfdaa744 (patch) | |
tree | 32e2434c42228ed8b5094259fc17c21eef30c591 /.emacs.d/init.el | |
parent | 47904cb736a67cadb9531a3862954ce8550c7cef (diff) | |
download | configs-a89c8bd86f292f36af628f0b5306c0a3dfdaa744.tar.gz configs-a89c8bd86f292f36af628f0b5306c0a3dfdaa744.tar.xz configs-a89c8bd86f292f36af628f0b5306c0a3dfdaa744.zip |
emacs,gnupg: use emacs for pinentry again
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index a043652..d2afd0f 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -451,12 +451,26 @@ For disabling the behaviour for certain buffers and/or modes." :config (pixel-scroll-mode 1)) (use-package epg-config + :config + ;; ask for GPG passphrase in minibuffer + ;; this will fail if gpg>=2.1 is not available + (if (version< "27" emacs-version) + (setq epg-pinentry-mode 'loopback) + (setq epa-pinentry-mode 'loopback)) :custom (epg-gpg-program (executable-find "gpg"))) (use-package epg :after epg-config) +(use-package pinentry + :demand + :after (epa epg server) + :config + ;; workaround for systemd-based distros: + ;; (setq pinentry--socket-dir server-socket-dir) + (pinentry-start)) + (use-package auth-source :custom (auth-sources '("~/.authinfo.gpg")) |