From 692057e47a19be54cbe93ee63840149c3fe97140 Mon Sep 17 00:00:00 2001
From: Thomas Voss <mail@thomasvoss.com>
Date: Sun, 1 Dec 2024 11:06:39 +0100
Subject: emacs: Set default value for ‘package-gnupghome-dir’
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .config/emacs/init.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 99e99de..0c028ed 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -122,8 +122,9 @@ buffer suppressed."
 
 (setopt
  package-vc-register-as-project nil
- package-gnupghome-dir (getenv "GNUPGHOME")
  package-user-dir (expand-file-name "pkg" mm-data-directory)
+ package-gnupghome-dir (or (getenv "GNUPGHOME")
+                           (expand-file-name "gnupg" package-user-dir))
  package-archives (cl-loop with proto = (if (gnutls-available-p) "https" "http")
                            for (name . url) in
                              '(("gnu"    . "elpa.gnu.org/packages/")
-- 
cgit v1.2.3