branch: externals/notmuch-indicator
commit 3ae83ca77890c09667fb43de4a0ee51a3ac1bfc3
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Make notmuch-indicator-mode also affect notmuch-after-tag-hook
---
notmuch-indicator.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/notmuch-indicator.el b/notmuch-indicator.el
index 3d652dbf65..b4930e5f9a 100644
--- a/notmuch-indicator.el
+++ b/notmuch-indicator.el
@@ -364,10 +364,12 @@ option `notmuch-indicator-refresh-count'.."
(setq notmuch-indicator--used-mode-line-construct
notmuch-indicator-mode-line-construct)
(add-to-list 'mode-line-misc-info
notmuch-indicator-mode-line-construct))
(notmuch-indicator--run-timer)
+ (add-hook 'notmuch-after-tag-hook #'notmuch-indicator-refresh)
(dolist (fn notmuch-indicator-force-refresh-commands)
(advice-add fn :after #'notmuch-indicator-refresh)))
(setq mode-line-misc-info (delete
notmuch-indicator--used-mode-line-construct mode-line-misc-info))
(cancel-function-timers #'notmuch-indicator--indicator)
+ (remove-hook 'notmuch-after-tag-hook #'notmuch-indicator-refresh)
(dolist (fn notmuch-indicator-force-refresh-commands)
(advice-remove fn #'notmuch-indicator-refresh))
(force-mode-line-update t)))