summaryrefslogtreecommitdiffhomepage
path: root/lib/net/jao-notmuch.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/jao-notmuch.el')
-rw-r--r--lib/net/jao-notmuch.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index fe3e086..f057a55 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -238,11 +238,12 @@
(nc (append n (or (jao-notmuch--message-counts t) '(0 0 0))))
(q (buffer-name)))
(with-current-buffer mb
- (let ((s (thread-last (notmuch-show-get-subject)
- (notmuch-show-strip-re)
- (notmuch-sanitize))))
- (setq-local header-line-format
- (apply 'jao-notmuch--format-counts s q nc))))))
+ (when (derived-mode-p 'notmuch-show-mode)
+ (let ((s (thread-last (notmuch-show-get-subject)
+ (notmuch-show-strip-re)
+ (notmuch-sanitize))))
+ (setq-local header-line-format
+ (apply 'jao-notmuch--format-counts s q nc)))))))
(defun jao-notmuch-tree--find-update-header-line (&rest _args)
(when-let ((mb (if (derived-mode-p 'notmuch-show-mode)