summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-12-24 22:57:40 +0800
committerJSDurand <mmemmew@gmail.com>2021-12-24 22:57:40 +0800
commitcfad8d73734cfa25412947af49359d2ee64ed923 (patch)
treef860595a9093bad311d25767f21092dcbe4f07ca
parent57a0cf597c458c20cb98a2e671ac624b16559223 (diff)
notmuch-conf: correctly load notmuch
-rw-r--r--notmuch-conf.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/notmuch-conf.el b/notmuch-conf.el
index cfbebfd..7892a19 100644
--- a/notmuch-conf.el
+++ b/notmuch-conf.el
@@ -26,8 +26,18 @@
;; The package is not installed in the usual package directory. Rather
;; it is included and installed by the notmuch distribution. So we
-;; only have to require it here.
+;; only have to load it here.
+(autoload 'durand-member "common")
+
+;; make sure the path is set up.
+(cond
+ ((not (durand-member "/usr/local/share/emacs/site-lisp/"
+ load-path #'string=))
+ (setq load-path
+ (cons "/usr/local/share/emacs/site-lisp/" load-path))))
+
+(load "notmuch")
(require 'notmuch)
(setq notmuch-show-empty-saved-searches t)