: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"))
default-cache-ttl-ssh 43200
max-cache-ttl-ssh 86400
-pinentry-program /home/bandali/.guix-profile/bin/pinentry
+pinentry-program /home/bandali/.guix-profile/bin/pinentry-emacs
+allow-emacs-pinentry
+allow-loopback-pinentry