summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
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"