aboutsummaryrefslogtreecommitdiffstats
path: root/oni
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-02-05 23:42:12 -0800
committerGravatar Tom Willemse2024-02-05 23:42:12 -0800
commitcc0b32e0166a89969338ef5db7dea0e61f32d8d7 (patch)
treea0c4caf75892e7bf84a6f35092d3d600070933a7 /oni
parent1fd9b5aa809d2163752ec57663ce8715a4bd7520 (diff)
downloadnew-dotfiles-cc0b32e0166a89969338ef5db7dea0e61f32d8d7.tar.gz
new-dotfiles-cc0b32e0166a89969338ef5db7dea0e61f32d8d7.zip
Fix GPG in Emacs
Diffstat (limited to 'oni')
-rw-r--r--oni/home/services/emacs/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/oni/home/services/emacs/init.el b/oni/home/services/emacs/init.el
index 3cf23d2..244d394 100644
--- a/oni/home/services/emacs/init.el
+++ b/oni/home/services/emacs/init.el
@@ -51,3 +51,11 @@
(add-hook 'electric-quote-inhibit-functions #'oni-in-word-p))
(with-eval-after-load 'yaml-mode (require 'oni-yaml))
+
+(defvar epg-gpg-program)
+(with-eval-after-load 'epg-config
+ ;; This is necessary because otherwise Emacs will select the wrong version of
+ ;; GnuPG through gpg2. gpg is installed by Guix and gpg2 by Archlinux. EPG
+ ;; seems to prefer gpg2 over gpg and now it seems that the versions of both
+ ;; have diverged enough that it now matters which is used.
+ (setq epg-gpg-program "gpg"))