]> git.notmuchmail.org Git - notmuch/commit
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)
commitb714a808a692a99c1b936be43186a40ab251aeca
tree03384fbba9a327bc3bf3e390ded5e69bc062d14d
parent4ea80dd2a105ae5d57742b7f44951d1826463fa9
emacs: possibility to customize the rendering of tags

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>
emacs/notmuch-show.el
emacs/notmuch-tag.el
emacs/notmuch.el