[notmuch] [PATCH] notmuch.el: Add face support to message summary and subject lines.
authorKan-Ru Chen <kanru@kanru.info>
Mon, 30 Nov 2009 14:50:39 +0000 (22:50 +0800)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:47 +0000 (09:35 -0800)
61/1bff4cfee2c306699fa0d6e07dc5adc20c92c2 [new file with mode: 0644]

diff --git a/61/1bff4cfee2c306699fa0d6e07dc5adc20c92c2 b/61/1bff4cfee2c306699fa0d6e07dc5adc20c92c2
new file mode 100644 (file)
index 0000000..d4cbeae
--- /dev/null
@@ -0,0 +1,99 @@
+Return-Path: <kanru@anar.kanru.info>\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 0BAA3431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 06:51: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 SI6DbRj-IFSH for <notmuch@notmuchmail.org>;\r
+       Mon, 30 Nov 2009 06:51:14 -0800 (PST)\r
+Received: from msr30.hinet.net (msr30.hinet.net [168.95.4.130])\r
+       by olra.theworths.org (Postfix) with ESMTP id 9AD9F431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 06:51:09 -0800 (PST)\r
+Received: from anar.kanru.info (61-228-160-66.dynamic.hinet.net\r
+       [61.228.160.66])\r
+       by msr30.hinet.net (8.9.3/8.9.3) with ESMTP id WAA11146\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 22:51:06 +0800 (CST)\r
+Received: from kanru (uid 1000) (envelope-from kanru@anar.kanru.info) id 5e\r
+       by anar.kanru.info (DragonFly Mail Agent)\r
+       Mon, 30 Nov 2009 22:50:53 +0800\r
+From: Kan-Ru Chen <kanru@kanru.info>\r
+To: notmuch@notmuchmail.org\r
+Date: Mon, 30 Nov 2009 22:50:39 +0800\r
+Message-Id: <1259592639-15593-1-git-send-email-kanru@kanru.info>\r
+X-Mailer: git-send-email 1.6.5.3\r
+Subject: [notmuch] [PATCH] notmuch.el: Add face support to message summary\r
+       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 14:51:16 -0000\r
+\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
+1.6.5.3\r
+\r