Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 7c / b738105dbd3c55c19fda2516303f23c993aee1
1 Return-Path: <jani@nikula.org>\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 7BC90431FAF\r
6         for <notmuch@notmuchmail.org>; Thu,  2 Feb 2012 06:58:50 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id j-jJUBJVZNIo for <notmuch@notmuchmail.org>;\r
16         Thu,  2 Feb 2012 06:58:50 -0800 (PST)\r
17 Received: from mail-lpp01m020-f181.google.com (mail-lpp01m020-f181.google.com\r
18         [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id B6643431FAE\r
21         for <notmuch@notmuchmail.org>; Thu,  2 Feb 2012 06:58:49 -0800 (PST)\r
22 Received: by lbbgn5 with SMTP id gn5so552983lbb.26\r
23         for <notmuch@notmuchmail.org>; Thu, 02 Feb 2012 06:58:46 -0800 (PST)\r
24 Received: by 10.112.30.73 with SMTP id q9mr855454lbh.30.1328194726751;\r
25         Thu, 02 Feb 2012 06:58:46 -0800 (PST)\r
26 Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.\r
27         [84.248.80.253])\r
28         by mx.google.com with ESMTPS id k13sm2193000lbu.16.2012.02.02.06.58.43\r
29         (version=SSLv3 cipher=OTHER); Thu, 02 Feb 2012 06:58:44 -0800 (PST)\r
30 From: Jani Nikula <jani@nikula.org>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH v2] emacs: add default value to notmuch-search-line-faces\r
33 Date: Thu,  2 Feb 2012 16:58:41 +0200\r
34 Message-Id: <1328194721-6010-1-git-send-email-jani@nikula.org>\r
35 X-Mailer: git-send-email 1.7.5.4\r
36 In-Reply-To: <1327605679-15213-1-git-send-email-jani@nikula.org>\r
37 References: <1327605679-15213-1-git-send-email-jani@nikula.org>\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Thu, 02 Feb 2012 14:58:50 -0000\r
51 \r
52 Add default value to notmuch-search-line-faces to show "unread"\r
53 messages in bold, and "flagged" messages in blue, to have some visual\r
54 indication of important messages in search results. This should be\r
55 helpful for new users.\r
56 \r
57 "unread" tag is quite obvious, and handled specially both in the lib\r
58 and emacs ui. "flagged" is synced to maildir F flag in the lib. If one\r
59 syncs the maildir to IMAP, this also translates to corresponding IMAP\r
60 flag. (This is "starred" in GMail and Android.)\r
61 \r
62 Signed-off-by: Jani Nikula <jani@nikula.org>\r
63 ---\r
64  emacs/notmuch.el |    3 ++-\r
65  1 files changed, 2 insertions(+), 1 deletions(-)\r
66 \r
67 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
68 index 5fa239a..bbf0aec 100644\r
69 --- a/emacs/notmuch.el\r
70 +++ b/emacs/notmuch.el\r
71 @@ -688,7 +688,8 @@ This function advances the next thread when finished."\r
72                   (goto-char (point-min))\r
73                   (forward-line (1- notmuch-search-target-line))))))))\r
74  \r
75 -(defcustom notmuch-search-line-faces nil\r
76 +(defcustom notmuch-search-line-faces '(("unread" :weight bold)\r
77 +                                      ("flagged" :foreground "blue"))\r
78    "Tag/face mapping for line highlighting in notmuch-search.\r
79  \r
80  Here is an example of how to color search results based on tags.\r
81 -- \r
82 1.7.5.4\r
83 \r