[PATCH 0/3] emacs: allow show to colour based on tags and flags

Mark Walters markwalters1009 at gmail.com
Sat Apr 14 12:21:38 PDT 2012


These three patches allow emacs to colour the headerline in show mode
according to the messages tags and flags (ie match or excluded).

The first two are David Edmondson's patch
id:"1325006003-27152-1-git-send-email-dme at dme.org" rebased to master
and split into one which is trivial code movement and one which adds
the show colouring functionality.

The first two give a very similar result to notmuch-search-line-faces
and just allow colouring based on tags (not flags). The final one adds
the colouring by flag: it does this by passing to the line colouring
code a list of tags prefixed by "tag:" and flags prefixed by "flag:"

The final patch could be folded into the second, and this would somewhat reduce the diff. 

Mark Walters (3):
  emacs: Move colour line from search to lib
  emacs: Add `notmuch-show-line-faces' and apply it.
  emacs: allow notmuch-show-line-faces to use flags for colouring

 emacs/notmuch-lib.el  |   18 ++++++++++++++++++
 emacs/notmuch-show.el |   44 ++++++++++++++++++++++++++++++++++++++++----
 emacs/notmuch.el      |   15 +--------------
 3 files changed, 59 insertions(+), 18 deletions(-)

-- 
1.7.9.1



More information about the notmuch mailing list