From f18c738452d3c93ace3ff60cb339d8918f15e365 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 31 Aug 2019 10:02:50 -0400 Subject: emacs,gnupg: do pinentry outside emacs --- .emacs.d/init.el | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 601d8e3..ab634c8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -304,27 +304,9 @@ For disabling the behaviour for certain buffers and/or modes." :defer 0.4 :config (pixel-scroll-mode 1)) -;; ask for GPG passphrase in minibuffer -(use-feature epa - :custom - ; this will fail if gpg>=2.1 is not available - (epa-pinentry-mode 'loopback)) - (use-feature epg-config - :defer 0.4 :custom - ((epg-gpg-program (executable-find "gpg")) - (epg-pinentry-mode 'loopback))) - -(use-feature epg - :after epg-config) - -(use-package pinentry - :demand - :after (epa epg server) - :config - (setq pinentry--socket-dir server-socket-dir) - (pinentry-start)) + ((epg-gpg-program (executable-find "gpg")))) ;; useful libraries (require 'cl-lib) -- cgit v1.2.3-83-g751a