From 02b1c51c519972f957bda61d17b1261cb6f49be9 Mon Sep 17 00:00:00 2001 From: Daniel <89086143+BardofSprites@users.noreply.github.com> Date: Tue, 23 Jul 2024 17:49:43 -0400 Subject: make notmuch and its indicator useable again --- bard-elisp/bard-modeline.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bard-elisp/bard-modeline.el') diff --git a/bard-elisp/bard-modeline.el b/bard-elisp/bard-modeline.el index 6967f2c..e93b594 100644 --- a/bard-elisp/bard-modeline.el +++ b/bard-elisp/bard-modeline.el @@ -525,6 +525,14 @@ Specific to the current window's mode line.") "Mode line construct displaying Eglot information. Specific to the current window's mode line.") +(defvar-local prot-modeline-notmuch-indicator + '(notmuch-indicator-mode + (" " + (:eval (when (mode-line-window-selected-p) + notmuch-indicator--counters)))) + "The equivalent of `notmuch-indicator-mode-line-construct'. +Display the indicator only on the focused window's mode line.") + ;;;; Miscellaneous (defvar-local prot-modeline-misc-info @@ -549,8 +557,8 @@ Specific to the current window's mode line.") prot-modeline-vc-branch prot-modeline-flymake prot-modeline-eglot - prot-modeline-notmuch-indicator - prot-modeline-misc-info)) + prot-modeline-misc-info + prot-modeline-notmuch-indicator)) (put construct 'risky-local-variable t)) (provide 'bard-modeline) -- cgit v1.2.3