gpg: Use Emacs for pinentry

master
Pierre Neidhardt 2017-06-27 08:55:43 +01:00
parent ebe1d17619
commit 816a852f6e
2 changed files with 8 additions and 2 deletions

View File

@ -43,11 +43,15 @@
(with-eval-after-load 'em-term
(nconc eshell-visual-commands
'("abook" "alsamixer" "cmus" "fzf" "htop" "mpsyt" "mpv" "mutt" "ncdu" "newsbeuter" "ranger" "watch"))
'("abook" "alsamixer" "cmus" "fzf" "htop" "mpsyt" "mpv" "mutt" "ncdu" "newsbeuter" "pinentry-curses" "ranger" "watch"))
(setq eshell-visual-subcommands
'(("git" "log" "l" "lol" "diff" "d" "dc" "show")
("sudo" "vi"))))
;;; Support for Emacs' pinentry
(setq epa-pinentry-mode 'loopback)
(pinentry-start)
;;; Alias management possibilities:
;;; - Version eshell-alias and store it in user-emacs-directory. Simplest and
;;; fastest, but aliases cannot be included conditionnaly, e.g. depending on the

View File

@ -1 +1,3 @@
pinentry-program /usr/bin/pinentry-curses
pinentry-program /usr/bin/pinentry-emacs
allow-emacs-pinentry
allow-loopback-pinentry