From 30eb7a1b7fc286c57cecfedf4d19b98e8b658347 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 25 Feb 2022 19:42:30 +0000 Subject: notmuch fixlets --- lib/net/jao-notmuch.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/net') 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) -- cgit v1.2.3