1 Return-Path: <markwalters1009@gmail.com>
\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 6B6B3431FBD
\r
6 for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 15:31:16 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id oupnvAS9rsa7 for <notmuch@notmuchmail.org>;
\r
18 Sat, 18 Jan 2014 15:31:12 -0800 (PST)
\r
19 Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com
\r
20 [74.125.82.52]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
21 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
22 EA2FB431FC2 for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 15:31:07 -0800
\r
24 Received: by mail-wg0-f52.google.com with SMTP id b13so5678152wgh.31
\r
25 for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 15:31:06 -0800 (PST)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
28 bh=ppUE4B7/hHm/RTGI8RCZyO78sKtVa/Br72lzplHOZ7k=;
\r
29 b=tX3h5AWZ7qDVPLSx/yWMOulKznKHF6qAW5PU0BcQwSmYp+BEih/RaKYM9sheNaUudw
\r
30 QaVI0KTQEaXKQRdoXNiVkE+S+Gj0unFMtiiiumpKkJubiGHZFch3WhIw/Za+LCd1wT9h
\r
31 y9NHgQIMmcElBWQ0jMXciSFdLE61nEGRIwS9JyRrF27zAgaUcxpQ4t6Il8oppPSdLiG4
\r
32 BQ2TOQZmIafx/ffTDxxlUhxIUZDx0YH+8K9OWRpn2RMWRqN63m4L0TnM7F38HtK5vyNl
\r
33 VsyXGm0kNylYEKek+hQSagnxdpfoCg+BstlEHPONEyfYHGW6KgzyW1zF3w+2HMpfE95Q
\r
35 X-Received: by 10.180.79.38 with SMTP id g6mr4039094wix.60.1390087866700;
\r
36 Sat, 18 Jan 2014 15:31:06 -0800 (PST)
\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])
\r
38 by mx.google.com with ESMTPSA id po3sm13864889wjc.3.2014.01.18.15.31.06
\r
39 for <multiple recipients>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Sat, 18 Jan 2014 15:31:06 -0800 (PST)
\r
42 From: Mark Walters <markwalters1009@gmail.com>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH 3/7] emacs: tag: add customize for deleted/added tag formats
\r
45 Date: Sat, 18 Jan 2014 23:30:51 +0000
\r
46 Message-Id: <1390087855-26194-4-git-send-email-markwalters1009@gmail.com>
\r
47 X-Mailer: git-send-email 1.7.9.1
\r
48 In-Reply-To: <1390087855-26194-1-git-send-email-markwalters1009@gmail.com>
\r
49 References: <1390087855-26194-1-git-send-email-markwalters1009@gmail.com>
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.13
\r
53 List-Id: "Use and development of the notmuch mail system."
\r
54 <notmuch.notmuchmail.org>
\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
58 List-Post: <mailto:notmuch@notmuchmail.org>
\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
62 X-List-Received-Date: Sat, 18 Jan 2014 23:31:16 -0000
\r
64 Add customize options for deleted/added tag formats. These are not
\r
65 used yet but will be later in the series.
\r
67 emacs/notmuch-tag.el | 25 +++++++++++++++++++++++++
\r
68 1 files changed, 25 insertions(+), 0 deletions(-)
\r
70 diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el
\r
71 index 92c1249..9757a0e 100644
\r
72 --- a/emacs/notmuch-tag.el
\r
73 +++ b/emacs/notmuch-tag.el
\r
74 @@ -86,6 +86,31 @@ with images."
\r
75 :group 'notmuch-show
\r
76 :type 'notmuch-tag-format-type)
\r
78 +(defcustom notmuch-tag-deleted-formats
\r
79 + '(("" (propertize tag 'face
\r
80 + (if (display-supports-face-attributes-p '(:strike-through "red"))
\r
81 + '(:strike-through "red")
\r
82 + '(:inverse-video t)))))
\r
83 + "Custom formats for tags when deleted.
\r
85 +By default this shows deleted tags with strike-through in red,
\r
86 +unless strike-through is not available (e.g., emacs is running in
\r
87 +a terminal) in which case it uses inverse video. To hide deleted
\r
88 +tags completely set this to
\r
91 +See `notmuch-tag-formats' for full documentation."
\r
92 + :group 'notmuch-show
\r
93 + :type 'notmuch-tag-format-type)
\r
95 +(defcustom notmuch-tag-added-formats
\r
96 + '(("" (propertize tag 'face '(:underline "green"))))
\r
97 + "Custom formats for tags when added.
\r
99 +See `notmuch-tag-formats' for full documentation."
\r
100 + :group 'notmuch-show
\r
101 + :type 'notmuch-tag-format-type)
\r
103 (defun notmuch-tag-format-image-data (tag data)
\r
104 "Replace TAG with image DATA, if available.
\r