Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4DA694196F0 for ; Wed, 7 Apr 2010 11:19:54 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bbyuX-INjlOw; Wed, 7 Apr 2010 11:19:53 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 36975431FC1; Wed, 7 Apr 2010 11:19:53 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id C832325400C; Wed, 7 Apr 2010 11:19:52 -0700 (PDT) From: Carl Worth To: Jameson Graef Rollins , Notmuch Mail Subject: Re: [notmuch] [PATCHv2] notmuch.el: colorize lines in notmuch-search based on thread tags. In-Reply-To: <87r5p01pqb.fsf@servo.finestructure.net> References: <87aavpb3wh.fsf@servo.finestructure.net> <87r5p01pqb.fsf@servo.finestructure.net> Date: Wed, 07 Apr 2010 11:19:52 -0700 Message-ID: <874ojngm5z.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2010 18:19:54 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 04 Feb 2010 19:38:20 -0500, Jameson Graef Rollins 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: >=20 > (setq notmuch-search-line-faces '(("delete" . (:foreground "red")) > ("unread" . (:foreground "green")))) >=20 > 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. =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLvMzI6JDdNq8qSWgRAusUAKCB191Kj1GtR6BMhRtyfLY7eKWPjgCbBB6P 2krdMPmVGLV1RoN6dHHGrvM= =+F6s -----END PGP SIGNATURE----- --=-=-=--