Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 61 / 1bff4cfee2c306699fa0d6e07dc5adc20c92c2
1 Return-Path: <kanru@anar.kanru.info>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 0BAA3431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 06:51:16 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id SI6DbRj-IFSH for <notmuch@notmuchmail.org>;\r
11         Mon, 30 Nov 2009 06:51:14 -0800 (PST)\r
12 Received: from msr30.hinet.net (msr30.hinet.net [168.95.4.130])\r
13         by olra.theworths.org (Postfix) with ESMTP id 9AD9F431FAE\r
14         for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 06:51:09 -0800 (PST)\r
15 Received: from anar.kanru.info (61-228-160-66.dynamic.hinet.net\r
16         [61.228.160.66])\r
17         by msr30.hinet.net (8.9.3/8.9.3) with ESMTP id WAA11146\r
18         for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 22:51:06 +0800 (CST)\r
19 Received: from kanru (uid 1000) (envelope-from kanru@anar.kanru.info) id 5e\r
20         by anar.kanru.info (DragonFly Mail Agent)\r
21         Mon, 30 Nov 2009 22:50:53 +0800\r
22 From: Kan-Ru Chen <kanru@kanru.info>\r
23 To: notmuch@notmuchmail.org\r
24 Date: Mon, 30 Nov 2009 22:50:39 +0800\r
25 Message-Id: <1259592639-15593-1-git-send-email-kanru@kanru.info>\r
26 X-Mailer: git-send-email 1.6.5.3\r
27 Subject: [notmuch] [PATCH] notmuch.el: Add face support to message summary\r
28         and subject lines.\r
29 X-BeenThere: notmuch@notmuchmail.org\r
30 X-Mailman-Version: 2.1.12\r
31 Precedence: list\r
32 List-Id: "Use and development of the notmuch mail system."\r
33         <notmuch.notmuchmail.org>\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
35         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
37 List-Post: <mailto:notmuch@notmuchmail.org>\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
40         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
41 X-List-Received-Date: Mon, 30 Nov 2009 14:51:16 -0000\r
42 \r
43 Remove the underline of both message summary and subject lines.\r
44 Message summary still defaults to reverse-video, use customize to\r
45 change it to whatever you like.\r
46 \r
47 Signed-off-by: Kan-Ru Chen <kanru@kanru.info>\r
48 ---\r
49  notmuch.el |   20 ++++++++++++++++----\r
50  1 files changed, 16 insertions(+), 4 deletions(-)\r
51 \r
52 diff --git a/notmuch.el b/notmuch.el\r
53 index 65473ba..730538c 100644\r
54 --- a/notmuch.el\r
55 +++ b/notmuch.el\r
56 @@ -714,9 +714,8 @@ which this thread was originally shown."\r
57    (let ((beg (point-marker))\r
58          (btn nil))\r
59      (end-of-line)\r
60 -    ; Inverse video for subject\r
61 -    (overlay-put (make-overlay beg (point)) 'face '(:inverse-video t))\r
62 -    (setq btn (make-button beg (point) :type 'notmuch-button-body-toggle-type))\r
63 +    (setq btn (make-button beg (point) :type 'notmuch-button-body-toggle-type\r
64 +                           'face 'notmuch-show-message-summary-face))\r
65      (forward-line 1)\r
66      (end-of-line)\r
67      (let ((beg-hidden (point-marker)))\r
68 @@ -739,7 +738,8 @@ which this thread was originally shown."\r
69            (forward-line)\r
70            (make-button (line-beginning-position) (line-end-position)\r
71                          'invisibility-spec (cons invis-spec t)\r
72 -                        :type 'notmuch-button-headers-toggle-type))\r
73 +                        :type 'notmuch-button-headers-toggle-type\r
74 +                        'face 'notmuch-show-message-headers-face))\r
75          (goto-char end)\r
76          (insert "\n")\r
77         (set-marker beg nil)\r
78 @@ -959,6 +959,18 @@ thread from that buffer can be show when done with this one)."\r
79    "Notmuch search mode face used to highligh tags."\r
80    :group 'notmuch)\r
81  \r
82 +(defface notmuch-show-message-summary-face\r
83 +  '((default\r
84 +    (:bold t :inverse-video t)))\r
85 +  "Notmuch show mode face used to highlight summary line."\r
86 +  :group 'notmuch)\r
87 +\r
88 +(defface notmuch-show-message-headers-face\r
89 +  '((default\r
90 +     (:bold t)))\r
91 +  "Notmuch show mode face used to highlight header lines."\r
92 +  :group 'notmuch)\r
93 +\r
94  (defvar notmuch-tag-face-alist nil\r
95    "List containing the tag list that need to be highlighed")\r
96  \r
97 -- \r
98 1.6.5.3\r
99 \r