(address . guix-patches@gnu.org)
From eba48a1058bc4ae7486e74ac30cf851a78ce7272 Mon Sep 17 00:00:00 2001
From: Andrew Tropin <andrew@trop.in>
Date: Wed, 7 Jul 2021 16:55:41 +0300
Subject: [PATCH] gnu: Add emacs-consult-notmuch.
* gnu/packages/emacs-xyz.scm (emacs-consult-notmuch): New variable.
---
gnu/packages/emacs-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Toggle diff (43 lines)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9591a4e6e7..788a25a8e8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -8084,6 +8084,36 @@ Emacs completion function completing-read, which allows quickly selecting from a
list of candidates.")
(license license:gpl3+)))
+(define-public emacs-consult-notmuch
+ (package
+ (name "emacs-consult-notmuch")
+ (version "0.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://codeberg.org/jao/consult-notmuch.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "19flyh3v1xm2zswzjkvjbijvpbq5r8isafza4fd0yicvqbjyklhx"))))
+ (build-system emacs-build-system)
+ (inputs
+ `(("emacs-consult" ,emacs-consult)
+ ("notmuch" ,notmuch)))
+ (license license:gpl3+)
+ (home-page "https://codeberg.org/jao/consult-notmuch")
+ (synopsis "Search and preview notmuch emails using consult")
+ (description "\
+This package provides two commands using consult to query notmuch
+emails and present results either as single emails @code{consult-notmuch}
+or full trees @code{consult-notmuch-tree}.
+
+The package also defines a narrowing source for @code{consult-buffer}, which
+can be activated with @code{(add-to-list 'consult-buffer-sources
+'consult-notmuch-buffer-source)}.")))
+
(define-public emacs-marginalia
(package
(name "emacs-marginalia")
--
2.32.0
-----BEGIN PGP SIGNATURE-----
iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmDls00PHGFuZHJld0B0
cm9wLmluAAoJECII0glYwd6wUYYP/3I28M73++esACnNjmSwLHSvS/4Z15NYbI9b
gnzU4ydAT91WSvCuB/qj2/IvZ9KFzD9mcrRRGuqAF4Ya9OqcyxlYK1U+hmBQE5Qk
jlkKsWnR3Zzac25J4KtrOeg5a5ywZ5H8aszx3YnDX+RCcVuE9gBbE49OyHSHrnRm
i8upg7TT+crA3RKLEjEca/5yTXWCqjcm8oM3VGdJUaMQox56PRN9Qtzcq3LptmSN
YW8UmORqGe24aUkHws9nwtByFbsum2H8n1mK8SDSZ6auSM402TzTWOAoWbZ0ZdQ3
JrNqqGfLLhWht54b6F1O5PzxK0gFJfiiAfY5zilDn7airgdAZcE8EaWELHZEA7hi
GwUPzxXauIB9QAZbtLqrstExuCiLMEm6e6K+15VMsR/j58X7P12yFAcvlO1EX72u
Y7BZRYznV3xhQNHallJcz/o9w/Ar1SPsoTni42mVx22Ns6LYySzeKqQ6vfml/l/g
3dbJpckc3rA3n3DhRGAA/OCNnoPs9HJ22qH2Sv4I6vCZPWbuiSF2qI1dhUhDClZo
Oa9O+Q3XIr8Ty7d5TX9CQ4ZMiorYf89KJTIa5cSEmArPsUnpndjX+JOxCSsbcaHj
JzqgzrDhiMH9Dp3d1wHTSmkZlvf30maS7N9qFNdEaK+Em32h3s/UMdpnk/79JwkB
OZjVHMI2
=igtW
-----END PGP SIGNATURE-----