From 9742b1a3c84e0e9df70353e281e39fbbea77e543 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 1 Apr 2022 18:55:19 -0500 Subject: Only load notmuch tab-bar if notmuch is in $PATH --- lisp/+tab-bar.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/+tab-bar.el b/lisp/+tab-bar.el index e328146..f0c4f62 100644 --- a/lisp/+tab-bar.el +++ b/lisp/+tab-bar.el @@ -52,7 +52,8 @@ (defun +tab-bar-notmuch-count () "Display a notmuch count in the tab-bar." - (when (featurep 'notmuch) + (when (and (executable-find "notmuch") + (featurep 'notmuch)) (let* ((counts (notmuch-hello-query-counts notmuch-saved-searches)) (next (cl-find "inbox" counts :key (lambda (l) (plist-get l :name)) :test 'equal)) (next-count (plist-get next :count))) -- cgit 1.4.1-21-gabe81