Re: [notmuch] [PATCH -v2] notmuch.el: Add face support to search and show mode
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 22 Nov 2009 12:21:06 +0000 (17:51 +0530)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:39 +0000 (09:35 -0800)
99/162150f443bb25bf06a0814d3da025f56fb67a [new file with mode: 0644]

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