🏆 I provide private lessons on Emacs, Linux, and Life in general: https://protesilaos.com/coach/. Lessons continue throughout the year.

Emacs: notmuch-indicator version 1.1.0

This is a simple package that renders an indicator with email counters of the notmuch index on the Emacs mode line. The underlying mechanism is that of notmuch-count(1), which is used to find the number of items that match the given search terms. The user can define the queries and associate them with a character, optionally assigning a face to it.

Below are the release notes.

The indicator now works over TRAMP

In previous versions, the counters of the notmuch-indicator-mode would be omitted from the mode line if the refresh would happen while the user was browsing a remote file system with TRAMP. They would be restored once the user would switch to a local buffer. This was done as a precaution, as I had not yet developed a mechanism to retrieve the data relative to the local user.

Counters are now always on display and are pointing to the local user’s configuration. The package furnishes two new users options, which make this possible: the notmuch-indicator-notmuch-config-file and notmuch-indicator-notmuch-binary.

Their respective value is set at the time the notmuch-indicator feature is loaded (such as with require or use-package).

Advanced users may wish to display different indicators depending on the TRAMP environment. In principle, this is done by setting the aforementioned options to the appropriate values. If anyone has such a use-case, please contact me as I am eager to make the package more flexible.

The mouse hover of counters has a better style

One of the nice features of the notmuch-indicator-mode counters on the mode line is that they are clickable: a mouse click produces a notmuch.el buffer with the same search terms as those that populate the counter.

Before, the face used to indicate the mouse hover state was the generic highlight which can differ from the mode-line-highlight (depending on the theme). We now use the latter to make sure that the styling is consistent.