aboutsummaryrefslogtreecommitdiff
path: root/bard-elisp/bard-modeline.el
diff options
context:
space:
mode:
Diffstat (limited to 'bard-elisp/bard-modeline.el')
-rw-r--r--bard-elisp/bard-modeline.el12
1 files changed, 10 insertions, 2 deletions
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)