summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--email.org4
-rw-r--r--notmuch.org3
2 files changed, 4 insertions, 3 deletions
diff --git a/email.org b/email.org
index 4088dc1..b33785f 100644
--- a/email.org
+++ b/email.org
@@ -356,8 +356,8 @@
#+end_src
* notmuch
#+begin_src emacs-lisp
- (when (eq jao-afio-mail-function 'notmuch)
- (jao-load-org "notmuch"))
+ (defvar jao-notmuch-enabled-p (eq jao-afio-mail-function 'notmuch))
+ (jao-load-org "notmuch")
#+end_src
* consult notmuch
#+begin_src emacs-lisp
diff --git a/notmuch.org b/notmuch.org
index d3d832d..13843f0 100644
--- a/notmuch.org
+++ b/notmuch.org
@@ -39,7 +39,8 @@
" "))
(jao-minibuffer-refresh)))
- (jao-minibuffer-add-variable 'jao-notmuch-minibuffer-string -20)
+ (when jao-notmuch-enabled-p
+ (jao-minibuffer-add-variable 'jao-notmuch-minibuffer-string -20))
#+end_src
* saved searches
#+begin_src emacs-lisp