emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/notmuch-indicator c098757f33 1/2: Render each indicator


From: ELPA Syncer
Subject: [elpa] externals/notmuch-indicator c098757f33 1/2: Render each indicator with its own mouse hover
Date: Fri, 30 Jun 2023 15:58:12 -0400 (EDT)

branch: externals/notmuch-indicator
commit c098757f33dadece30612135358b0beb5a878bcd
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Render each indicator with its own mouse hover
    
    This makes it easier to understand that each indicator is its own
    button.  Clicking on it opens the corresponding notmuch buffer with
    the same search terms as those of the indicator.  Neat!
---
 notmuch-indicator.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/notmuch-indicator.el b/notmuch-indicator.el
index 9ee2a9e6c1..3724ffc486 100644
--- a/notmuch-indicator.el
+++ b/notmuch-indicator.el
@@ -178,11 +178,12 @@ option `notmuch-indicator-refresh-count'."
     (define-key map [mode-line mouse-1]
                 (lambda () (interactive) (notmuch-search terms)))
     (propertize
-     (format "%s%s "
+     (format "%s%s"
              (if (and face label)
                  (propertize label 'face face)
                (or label ""))
              count)
+     'mouse-face 'highlight
      'help-echo (format "mouse-1: Open notmuch search for `%s'" terms)
      'local-map map)))
 
@@ -202,7 +203,7 @@ option `notmuch-indicator-refresh-count'."
   "Parse `notmuch-indicator-args' and format them as single string."
   (mapconcat
    #'notmuch-indicator--format-output
-   notmuch-indicator-args ""))
+   notmuch-indicator-args " "))
 
 (defvar notmuch-indicator-string ""
   "String showing the `notmuch-indicator' state.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]