summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-08-31 10:02:50 -0400
committerAmin Bandali <bandali@gnu.org>2019-08-31 10:03:30 -0400
commitf18c738452d3c93ace3ff60cb339d8918f15e365 (patch)
tree55bc63b4162b5d8d1788ccb234f60cf04becd71f
parent2c483b3ea7a7ef7f0dbd6f1264dbff73a6ca9614 (diff)
downloadconfigs-f18c738452d3c93ace3ff60cb339d8918f15e365.tar.gz
configs-f18c738452d3c93ace3ff60cb339d8918f15e365.tar.xz
configs-f18c738452d3c93ace3ff60cb339d8918f15e365.zip
emacs,gnupg: do pinentry outside emacs
Diffstat (limited to '')
-rw-r--r--.config/guix/manifest/jirud.scm2
-rw-r--r--.emacs.d/init.el20
-rw-r--r--.gnupg/gpg-agent.conf10
3 files changed, 6 insertions, 26 deletions
diff --git a/.config/guix/manifest/jirud.scm b/.config/guix/manifest/jirud.scm
index 92a67ff..1949ca7 100644
--- a/.config/guix/manifest/jirud.scm
+++ b/.config/guix/manifest/jirud.scm
@@ -35,7 +35,7 @@
"openssh"
;; "openssl"
"password-store"
- "pinentry-emacs"
+ "pinentry"
;; "poppler" ;for 'pdffonts'
"rsync"
"rtv"
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)
diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf
index b0ff3ac..1b59d64 100644
--- a/.gnupg/gpg-agent.conf
+++ b/.gnupg/gpg-agent.conf
@@ -1,9 +1,7 @@
default-cache-ttl 43200
-max-cache-ttl 43200
+max-cache-ttl 86400
-default-cache-ttl-ssh 10800
-max-cache-ttl-ssh 10800
+default-cache-ttl-ssh 43200
+max-cache-ttl-ssh 86400
-pinentry-program /home/bandali/.guix-profile/bin/pinentry-emacs
-allow-emacs-pinentry
-allow-loopback-pinentry
+pinentry-program /home/bandali/.guix-profile/bin/pinentry