summaryrefslogtreecommitdiff
path: root/doom
diff options
context:
space:
mode:
authorMagdalena Szweda <hi@roughlynamed.net>2026-09-27 19:07:34 +0200
committerMagdalena Szweda <hi@roughlynamed.net>2026-09-29 14:14:30 +0200
commit0fe368fc5f196569a3e0abb8800de155affc5ddf (patch)
tree7864439ad95aee4d88df8ce7d1f31936ba70a91c /doom
parent30a274f48e1f0746a2aaff34eed09df80a47ec1f (diff)
gen2
Diffstat (limited to 'doom')
-rw-r--r--doom/.config/doom/config.el7
-rw-r--r--doom/.config/doom/config.org9
-rw-r--r--doom/.config/doom/packages.el1
3 files changed, 15 insertions, 2 deletions
diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el
index 0e6c0c7..e9c9fc7 100644
--- a/doom/.config/doom/config.el
+++ b/doom/.config/doom/config.el
@@ -111,6 +111,11 @@
(dolist (mode '(html-mode mhtml-mode web-mode css-mode))
(setf (alist-get mode apheleia-mode-alist) 'oxfmt)))
+(use-package! pinentry
+ :config
+ (pinentry-start))
+(setq epg-pinentry-mode 'loopback)
+
(setq auth-sources '("~/.authinfo.gpg"))
(setq auth-source-cache-expiry nil)
@@ -123,7 +128,7 @@
user-full-name "Magdalena Szweda") ; my name
(setq mml-secure-openpgp-signers
- '("3258B28C124AB0891D6C9E929B72909EEF00CBD0")
+ '("B9CF59FE57835F89ECB33FD417CA809770F85511")
mml-secure-openpgp-sign-with-sender t)
(setq message-signature-file "~/.signature") ; note no trailing slash
diff --git a/doom/.config/doom/config.org b/doom/.config/doom/config.org
index fc52f43..e373e3a 100644
--- a/doom/.config/doom/config.org
+++ b/doom/.config/doom/config.org
@@ -238,6 +238,13 @@ Here we hook the new oxfmt formatter into:
** Auth
To send mail, we need to log into everything.
Instead of typing out passwords every time, we use the ~~.authinfo.gpg~ file (can also be without the gpg encryption).
+First we set up pinentry.
+#+begin_src emacs-lisp
+ (use-package! pinentry
+ :config
+ (pinentry-start))
+ (setq epg-pinentry-mode 'loopback)
+#+end_src
To read the file:
#+begin_src emacs-lisp
(setq auth-sources '("~/.authinfo.gpg"))
@@ -271,7 +278,7 @@ Now we configure our user of gnus.
While we're at it, lets point Emacs at my LibrePGP key.
#+begin_src emacs-lisp
(setq mml-secure-openpgp-signers
- '("3258B28C124AB0891D6C9E929B72909EEF00CBD0")
+ '("B9CF59FE57835F89ECB33FD417CA809770F85511")
mml-secure-openpgp-sign-with-sender t)
#+end_src
diff --git a/doom/.config/doom/packages.el b/doom/.config/doom/packages.el
index dacca67..b8e5cb9 100644
--- a/doom/.config/doom/packages.el
+++ b/doom/.config/doom/packages.el
@@ -16,3 +16,4 @@
(package! org-modern-indent
:recipe (:host github :repo "jdtsmith/org-modern-indent"))
(package! nov)
+(package! pinentry)