]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: possibility to customize the rendering of tags
authorDamien Cassou <damien.cassou@gmail.com>
Sat, 23 Mar 2013 11:29:54 +0000 (12:29 +0100)
committerDavid Bremner <bremner@unb.ca>
Mon, 25 Mar 2013 15:38:49 +0000 (11:38 -0400)
This patch extracts the rendering of tags in notmuch-show to
the notmuch-tag file.

This file introduces a `notmuch-tag-formats' variable that associates
each tag to a particular format. This variable can be customized
thanks to the work of Austin Clements. For example,

  '(("unread" (propertize tag 'face '(:foreground "red")))
    ("flagged" (notmuch-tag-format-image tag "star.svg")))

associates a red foreground to the "unread" tag and a star picture to
the "flagged" tag.

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>

No differences found