On Thu, 04 Feb 2010 19:38:20 -0500, Jameson Graef Rollins <jrollins at finestructure.net> wrote: > Arbitrary font faces can be specified for given thread tags. By > default, no coloring is applied. To specify coloring, place something > like this in your .emacs: > > (setq notmuch-search-line-faces '(("delete" . (:foreground "red")) > ("unread" . (:foreground "green")))) > > Order matters: line faces listed first will take precedence (in the > example above, a thread tagged both "delete" and "unread" will be > colored red, since the "delete" face is listed before the "unread").
Hi Jameson, Thanks for this patch. I just pushed it (based on what I found originally in spaetz' tree). Only after coming back here did I find that you had sent a second version that colored "delete" tags by default. I haven't added that part for a couple of reasons: 1. The commit message doesn't match the behavior of the patch, (it says "no coloring is applied" by default. 2. I think we'll go with a tag name of "deleted" rather than "delete". I did fix up some indentation and a slightly scrambled commit message. But maybe that only existed in spaetz' tree. Finally, I checked the customization support, ("M-x customize", then browse Applications->Email->Notmuch), and saw that notmuch-tag-face is much easier to customize there, (provides a drop-down value menu with buttons for modifying the face---where I couldn't even figure out how to use customize for the new notmuch-search-line-faces). Plus, I think both of these values should likely be merged into a single face-selection option, (perhaps with a separate Boolean to determine whether to highlight just the tag name or the whole line). Thanks again for the improvements, and hopefully you'll see quicker merging from me in the future. -Carl -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100407/fbc89baf/attachment.pgp>