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 0BAA3431FBC for ; Mon, 30 Nov 2009 06:51: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 SI6DbRj-IFSH for ; Mon, 30 Nov 2009 06:51:14 -0800 (PST) Received: from msr30.hinet.net (msr30.hinet.net [168.95.4.130]) by olra.theworths.org (Postfix) with ESMTP id 9AD9F431FAE for ; Mon, 30 Nov 2009 06:51:09 -0800 (PST) Received: from anar.kanru.info (61-228-160-66.dynamic.hinet.net [61.228.160.66]) by msr30.hinet.net (8.9.3/8.9.3) with ESMTP id WAA11146 for ; Mon, 30 Nov 2009 22:51:06 +0800 (CST) Received: from kanru (uid 1000) (envelope-from kanru@anar.kanru.info) id 5e by anar.kanru.info (DragonFly Mail Agent) Mon, 30 Nov 2009 22:50:53 +0800 From: Kan-Ru Chen To: notmuch@notmuchmail.org Date: Mon, 30 Nov 2009 22:50:39 +0800 Message-Id: <1259592639-15593-1-git-send-email-kanru@kanru.info> X-Mailer: git-send-email 1.6.5.3 Subject: [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 14:51:16 -0000 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") -- 1.6.5.3