gpg: Add config to ask for the gpg passphrase

In order for emacs to be able to cope with gpg, the following lines
have to be configured in `~/.gnupg/gpg-agent.conf`:

```
pinentry-program /usr/bin/pinentry-tty
allow-loopback-entry
```
This commit is contained in:
finga 2023-06-29 08:43:38 +02:00
parent 9e9ec1829d
commit 3fad3b9758
3 changed files with 5 additions and 1 deletions

3
.emacs.d/config/gpg.el Normal file
View file

@ -0,0 +1,3 @@
(use-package pinentry
:init
(setq epa-pinentry-mode 'loopback))

View file

@ -57,7 +57,7 @@ symbols, which are converted to strings, and suffixed with \".el\"."
:group 'config-snippets :group 'config-snippets
:type '(repeat directory)) :type '(repeat directory))
(setq config-snippets '(base backups calendar dev functions org pass wl)) (setq config-snippets '(base backups calendar dev functions gpg org pass wl))
(message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s" config-snippets config-snippet-path) (message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s" config-snippets config-snippet-path)
(dolist (snippet config-snippets) (dolist (snippet config-snippets)

View file

@ -4,6 +4,7 @@
!/.emacs.d/config/calendar.el !/.emacs.d/config/calendar.el
!/.emacs.d/config/dev.el !/.emacs.d/config/dev.el
!/.emacs.d/config/functions.el !/.emacs.d/config/functions.el
!/.emacs.d/config/gpg.el
!/.emacs.d/config/org.el !/.emacs.d/config/org.el
!/.emacs.d/config/pass.el !/.emacs.d/config/pass.el
!/.emacs.d/config/tramp.el !/.emacs.d/config/tramp.el