summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-08-15 12:31:27 +0100
committerjao <jao@gnu.org>2022-08-15 12:31:27 +0100
commit5e22e2e18735e0b253afc07bb9d5ea41d7346f28 (patch)
treeaeb0b0dcd4f4a00159f6166c26a215b2549be3c2 /custom
parent6d9db1481189363769ccaf206377378f3d8aaaa3 (diff)
downloadelibs-5e22e2e18735e0b253afc07bb9d5ea41d7346f28.tar.gz
elibs-5e22e2e18735e0b253afc07bb9d5ea41d7346f28.tar.bz2
notmuch nit
Diffstat (limited to 'custom')
-rw-r--r--custom/jao-custom-notmuch.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 8c4146a..de66943 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -1,5 +1,4 @@
;; -*- lexical-binding: t; -*-
-
;;; minibuffer
(defvar jao-notmuch-minibuffer-string "")
@@ -654,12 +653,13 @@
(match-string 1)))))
(when id (notmuch-show (concat "id:" id)))))
-(with-eval-after-load "org"
- (org-link-set-parameters "message" :follow #'jao-notmuch-open-file))
+(when jao-notmuch-enabled
+ (with-eval-after-load "org"
+ (org-link-set-parameters "message" :follow #'jao-notmuch-open-file))
-(with-eval-after-load "consult-recoll"
- (add-to-list 'consult-recoll-open-fns
- ("message/rfc822" . jao-notmuch-open-file)))
+ (with-eval-after-load "consult-recoll"
+ (add-to-list 'consult-recoll-open-fns
+ ("message/rfc822" . jao-notmuch-open-file))))
;;; link hint
(with-eval-after-load "link-hint"