From 5e22e2e18735e0b253afc07bb9d5ea41d7346f28 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 15 Aug 2022 12:31:27 +0100 Subject: notmuch nit --- custom/jao-custom-notmuch.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'custom') 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" -- cgit v1.2.3