Re: [notmuch] [PATCH] notmuch.el: Add face support to message summary and subject...
authorAneesh Kumar K. V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 30 Nov 2009 16:40:59 +0000 (22:10 +0530)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:47 +0000 (09:35 -0800)
ab/f26d24441b8844a6a57fdc8d648806bd41396e [new file with mode: 0644]

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