emacs: Tags should be shown with `notmuch-tag-face'.
authorDavid Edmondson <dme@dme.org>
Wed, 19 May 2010 07:03:39 +0000 (08:03 +0100)
committerCarl Worth <cworth@cworth.org>
Fri, 4 Jun 2010 02:13:23 +0000 (19:13 -0700)
Use the same face for tags in `notmuch-show' mode as that used in
`notmuch-search' mode.

emacs/notmuch-show.el

index 686e203702d05ec018afc0f8e9bcff843f218fba..d66894ae38375821509025f8c22e0a5fb01a8c0e 100644 (file)
@@ -194,7 +194,8 @@ any given message."
     (if (re-search-forward "(\\([^()]*\\))$" (line-end-position) t)
        (let ((inhibit-read-only t))
          (replace-match (concat "("
-                                (mapconcat 'identity tags " ")
+                                (propertize (mapconcat 'identity tags " ")
+                                            'face 'notmuch-tag-face)
                                 ")"))))))
 
 (defun notmuch-show-insert-headerline (headers date tags depth)
@@ -206,7 +207,8 @@ message at DEPTH in the current thread."
            " ("
            date
            ") ("
-           (mapconcat 'identity tags " ")
+           (propertize (mapconcat 'identity tags " ")
+                       'face 'notmuch-tag-face)
            ")\n")
     (overlay-put (make-overlay start (point)) 'face 'notmuch-message-summary-face)))