diff options
| author | Daniel <[email protected]> | 2024-07-23 17:49:43 -0400 |
|---|---|---|
| committer | Daniel <[email protected]> | 2024-07-23 17:49:43 -0400 |
| commit | 02b1c51c519972f957bda61d17b1261cb6f49be9 (patch) | |
| tree | 12ccab5ff8e88ffd6078594ed56e393d6e3b7508 /bard-elisp/bard-modeline.el | |
| parent | 929483d1ade11de5485c4377c4660ed99ea21d50 (diff) | |
make notmuch and its indicator useable again
Diffstat (limited to 'bard-elisp/bard-modeline.el')
| -rw-r--r-- | bard-elisp/bard-modeline.el | 12 |
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) |
