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 8B17B431FC0 for ; Sun, 22 Nov 2009 04:21:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 rD+lHEKs8Mk3 for ; Sun, 22 Nov 2009 04:21:15 -0800 (PST) Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by olra.theworths.org (Postfix) with ESMTP id 519EE431FAE for ; Sun, 22 Nov 2009 04:21:15 -0800 (PST) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp08.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAMNLDJV004560 for ; Mon, 23 Nov 2009 10:21:13 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAMCHnLl1577004 for ; Sun, 22 Nov 2009 23:17:49 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAMCLCGj009758 for ; Sun, 22 Nov 2009 23:21:12 +1100 Received: from skywalker.linux.vnet.ibm.com ([9.77.209.175]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAMCL7o0009705 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 22 Nov 2009 23:21:10 +1100 Date: Sun, 22 Nov 2009 17:51:06 +0530 From: "Aneesh Kumar K.V" To: Carl Worth Message-ID: <20091122122106.GA3531@skywalker.linux.vnet.ibm.com> References: <1258879076-31883-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <87hbsmg436.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87hbsmg436.fsf@yoom.home.cworth.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH -v2] notmuch.el: Add face support to search and show mode X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Sun, 22 Nov 2009 12:21:16 -0000 On Sun, Nov 22, 2009 at 01:02:21PM +0100, Carl Worth wrote: > On Sun, 22 Nov 2009 14:07:56 +0530, "Aneesh Kumar K.V" wrote: > > This add two faces, notmuch-show-subject-face and > > notmuch-tag-unread-face. The first face is used to show the subject > > line in the notmuch-show-mode and the second one to show the unread > > tag in the notmuch-search-mode. We can set additional tags by setting > > notmuch-tag-face-alist as below > > Hi Aneesh, > > I've been meaning to follow-up with you on this since I did get it > working. > > > (setq notmuch-tag-face-alist '(("unread" . 'notmuch-tag-unread-face) > > ("inbox" . 'notmuch-tag-inbox-face))) > > It's interesting to be able to highlight specific tags like this. But I > think that first I'd like to have a single 'notmuch-tag face to make it > easier to see all the tag names, since they're hard to see among the > subject. And then maybe after that have s 'notmuch-tag-important-face or > something. I'm guessing that just that much would cover most people's > needs, before needing to choose custom colors for each tag name. The default search pattern for notmuch is inbox and unread right. So adding both of them to the notmuch-tag-face-alist should color the tags properly. > > > +(defface notmuch-show-subject-face > > + '((((class color) (background light)) (:foreground "yellow" :bold t)) > > + (((class color) (background dark)) (:foreground "yellow" :bold t))) > > + "Notmuch show mode face used to highligh subject line." > > + :group 'notmuch) > > Color selection can be pretty difficult, and I don't think we're ever > all going to agree on things. But I can at least say that I can't read > yellow on white at all, (maybe yellow on black works out a bit better, I > don't know). > > So I'd definitely like to hear people's ideas on what the presentation > should look like here. > > First, the current reverse-video is definitely not something I really > like. That was just a placeholder since I didn't know how to configure > other faces, (and I needed _something_ to distinguish one message from > another). > > Second, from the time I spent with sup, I found that it was hard for me > to read entire lines of bold text. So I think I'd rather just have the > header name ("Subject:", for example) in bold and the rest of the > subject not bold. Hmm... maybe we could use a "From:" at the beginning > of the one line summary. > > Finally, for separating one message from the other, I think I'd really > just like a one-pixel line drawn between the last line of text of one > message and the first line of text of the next message. Does anybody > know how to achieve that? > > Back to the patch, I think I'll be able to push it as soon as I can > apply it and still _see_ the subject lines. ;-) One of the easy part with emacs is we can use customize-face and select notmuch-show-subject-face to select what ever suites your configuration. For me with black background i found yellow with bold to be nice. -aneesh