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 1A766431FBC for ; Mon, 30 Nov 2009 08:41:13 -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 u3ZupM1ixBCU for ; Mon, 30 Nov 2009 08:41:12 -0800 (PST) Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by olra.theworths.org (Postfix) with ESMTP id 07A23431FAE for ; Mon, 30 Nov 2009 08:41:11 -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 nB13f386012927 for ; Tue, 1 Dec 2009 14:41:03 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nAUGbTT71388602 for ; Tue, 1 Dec 2009 03:37:29 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nAUGf2WY023452 for ; Tue, 1 Dec 2009 03:41:03 +1100 Received: from skywalker.linux.vnet.ibm.com ([9.124.213.53]) by d23av01.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nAUGexw5023431; Tue, 1 Dec 2009 03:41:01 +1100 From: "Aneesh Kumar K. V" To: Kan-Ru Chen , notmuch@notmuchmail.org In-Reply-To: <1259592639-15593-1-git-send-email-kanru@kanru.info> References: <1259592639-15593-1-git-send-email-kanru@kanru.info> Date: Mon, 30 Nov 2009 22:10:59 +0530 Message-ID: <877ht8rmn8.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] notmuch.el: Add face support to message summary and subject lines. 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: Mon, 30 Nov 2009 16:41:13 -0000 On Mon, 30 Nov 2009 22:50:39 +0800, Kan-Ru Chen wrote: > Remove the underline of both message summary and subject lines. > Message summary still defaults to reverse-video, use customize to > change it to whatever you like. > > Signed-off-by: Kan-Ru Chen > --- > notmuch.el | 20 ++++++++++++++++---- > 1 files changed, 16 insertions(+), 4 deletions(-) > > diff --git a/notmuch.el b/notmuch.el > index 65473ba..730538c 100644 > --- a/notmuch.el > +++ b/notmuch.el > @@ -714,9 +714,8 @@ which this thread was originally shown." > (let ((beg (point-marker)) > (btn nil)) > (end-of-line) > - ; Inverse video for subject > - (overlay-put (make-overlay beg (point)) 'face '(:inverse-video t)) > - (setq btn (make-button beg (point) :type 'notmuch-button-body-toggle-type)) > + (setq btn (make-button beg (point) :type 'notmuch-button-body-toggle-type > + 'face 'notmuch-show-message-summary-face)) > (forward-line 1) > (end-of-line) > (let ((beg-hidden (point-marker))) > @@ -739,7 +738,8 @@ which this thread was originally shown." > (forward-line) > (make-button (line-beginning-position) (line-end-position) > 'invisibility-spec (cons invis-spec t) > - :type 'notmuch-button-headers-toggle-type)) > + :type 'notmuch-button-headers-toggle-type > + 'face 'notmuch-show-message-headers-face)) > (goto-char end) > (insert "\n") > (set-marker beg nil) > @@ -959,6 +959,18 @@ thread from that buffer can be show when done with this one)." > "Notmuch search mode face used to highligh tags." > :group 'notmuch) > > +(defface notmuch-show-message-summary-face > + '((default > + (:bold t :inverse-video t))) > + "Notmuch show mode face used to highlight summary line." > + :group 'notmuch) > + > +(defface notmuch-show-message-headers-face > + '((default > + (:bold t))) > + "Notmuch show mode face used to highlight header lines." > + :group 'notmuch) > + > (defvar notmuch-tag-face-alist nil > "List containing the tag list that need to be highlighed") > The subject line is already have a font face value attached. message-header-name to show the name of the header and message-header-subject to show the subject details. -aneesh