From c68cee618df34c4ca31c682a9d5d7ecd37e49688 Mon Sep 17 00:00:00 2001
From: fpi
Date: Wed, 3 Jun 2020 19:22:00 +0200
Subject: Set emacs to ask for gpg passphrases in the minibuffer

---
 emacs-init.org | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/emacs-init.org b/emacs-init.org
index 37ae657..b636c0f 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -1501,6 +1501,17 @@ over =windmove=, as it does not interfere with org keybindings.
               ("C-c <left>" . winner-hydra/winner-undo)
               ("C-c <right>" . winner-hydra/winner-redo)))
 #+end_src
+** File encryption
+=epa= handles en-/decryption with =gnupg=. Setting ~'loopback~ pinentry mode will ask for the key passphrase in the emacs minibuffer. For this the =pinentry= package is needed, as well as setting =allow-emacs-pinentry= in the =gnupg= configuration.
+
+#+begin_src emacs-lisp
+(use-package epa
+  :custom (epa-pinentry-mode 'loopback))
+(use-package pinentry
+  :ensure t
+  :config (pinentry-start)
+  :after epa)
+#+end_src
 * Applications and utilities
 ** Calendar
 Some basic calendar options for date format und location to provide
-- 
cgit v1.2.3