chiark / gitweb /
dot/emacs: Use loopback pinentry if we get a choice.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 26 May 2020 23:40:11 +0000 (00:40 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 26 May 2020 23:40:11 +0000 (00:40 +0100)
Alas, Emacs 24 doesn't understand this setting.  Worse, Emacs and
`pinentry-curses' (or the `curses' mode of other pinentries) fight over
the terminal in a rather disastrous way.

dot/emacs

index de70388a77747aadf3d52f0eea1bd388a15f851b..bd6f7314f620da5093cd4f58db0a83ae7e882d54 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
              (define-key mc-write-mode-map "\C-c/E" 'mc-encrypt-region)
              (add-hook 'text-mode-hook 'mc-install-write-mode))))
 
+(setq epa-pinentry-mode 'loopback)
+
 ;;;--------------------------------------------------------------------------
 ;;; Other common declarations.