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 83BB2431FD6
\r
6 for <notmuch@notmuchmail.org>; Fri, 14 Feb 2014 01:15:40 -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 cowItVYj8e4r for <notmuch@notmuchmail.org>;
\r
18 Fri, 14 Feb 2014 01:15:34 -0800 (PST)
\r
19 Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com
\r
20 [209.85.212.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id 73A5C431FBF
\r
23 for <notmuch@notmuchmail.org>; Fri, 14 Feb 2014 01:15:33 -0800 (PST)
\r
24 Received: by mail-wi0-f173.google.com with SMTP id hn9so251816wib.6
\r
25 for <notmuch@notmuchmail.org>; Fri, 14 Feb 2014 01:15:32 -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=6cH8DPMz+/w1ZTopCipIo2uGD9loNWXV6WpX5BoTRzg=;
\r
29 b=mi+ZjKu0sk1QBtqrKQRC2ipmVZnhywIjnCl37mTW8Yx2/4kiulgJFLtdssjkUPrlxU
\r
30 +MidnwHDQTedA/ElBxioJ9JsB/zfUBgvH6A1nEzVMZCdc4DzTOAntgJWDCkIrl1LkRkP
\r
31 xmwQOLpHLJ7uB/FAXrgweqEsMUxkjB4CXfTcOA4KPiCNpIosw8TKQH6R8VUqRIbWGCui
\r
32 EDavFQPrftVw04GBb5fhQQUYsj3Av9GdGTgbFXSd2T2gpbu0SzYA5UaD0xC4GbGz79zM
\r
33 XyxUIKoKJTdWkCFQVmEklGLvibHN1eg4dLhTqqGf4uSKFt3YLMZKfOnQ0SsH5yrys+ym
\r
35 X-Received: by 10.180.219.66 with SMTP id pm2mr1232811wic.60.1392369330766;
\r
36 Fri, 14 Feb 2014 01:15:30 -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
\r
39 h13sm11128747wjr.22.2014.02.14.01.15.30 for <multiple recipients>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Fri, 14 Feb 2014 01:15:30 -0800 (PST)
\r
42 From: Mark Walters <markwalters1009@gmail.com>
\r
43 To: notmuch@notmuchmail.org,
\r
44 Austin Clements <amdragon@MIT.EDU>
\r
45 Subject: [WIP Patch 3/7] emacs: tag: add customize for deleted/added tag
\r
47 Date: Fri, 14 Feb 2014 09:15:15 +0000
\r
48 Message-Id: <1392369319-24508-4-git-send-email-markwalters1009@gmail.com>
\r
49 X-Mailer: git-send-email 1.7.9.1
\r
50 In-Reply-To: <1392369319-24508-1-git-send-email-markwalters1009@gmail.com>
\r
51 References: <1392369319-24508-1-git-send-email-markwalters1009@gmail.com>
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.13
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Fri, 14 Feb 2014 09:15:40 -0000
\r
66 Add customize options for deleted/added tag formats. These are not
\r
67 used yet but will be later in the series.
\r
69 emacs/notmuch-tag.el | 33 +++++++++++++++++++++++++++++++++
\r
70 1 files changed, 33 insertions(+), 0 deletions(-)
\r
72 diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el
\r
73 index f987291..add60a3 100644
\r
74 --- a/emacs/notmuch-tag.el
\r
75 +++ b/emacs/notmuch-tag.el
\r
76 @@ -106,6 +106,39 @@ with images."
\r
77 :set (lambda (var val) (set-default var val) (notmuch-tag-clear-cache))
\r
78 :type 'notmuch-tag-format-type)
\r
80 +(defcustom notmuch-tag-deleted-formats
\r
81 + '((".*" (propertize tag 'face
\r
82 + (if (display-supports-face-attributes-p '(:strike-through "red"))
\r
83 + '(:strike-through "red")
\r
84 + '(:inverse-video t)))))
\r
85 + "Custom formats for tags when deleted.
\r
87 +For deleted tags the formats in `notmuch-tag-formats` are applied
\r
88 +first and then these formats are applied on top.
\r
90 +By default this shows deleted tags with strike-through in red,
\r
91 +unless strike-through is not available (e.g., emacs is running in
\r
92 +a terminal) in which case it uses inverse video. To hide deleted
\r
93 +tags completely set this to
\r
96 +See `notmuch-tag-formats' for full documentation."
\r
97 + :group 'notmuch-show
\r
98 + :set (lambda (var val) (set-default var val) (notmuch-tag-clear-cache))
\r
99 + :type 'notmuch-tag-format-type)
\r
101 +(defcustom notmuch-tag-added-formats
\r
102 + '((".*" (propertize tag 'face '(:underline "green"))))
\r
103 + "Custom formats for tags when added.
\r
105 +For added tags the formats in `notmuch-tag-formats` are applied
\r
106 +first and then these formats are applied on top.
\r
108 +See `notmuch-tag-formats' for full documentation."
\r
109 + :group 'notmuch-show
\r
110 + :set (lambda (var val) (set-default var val) (notmuch-tag-clear-cache))
\r
111 + :type 'notmuch-tag-format-type)
\r
113 (defun notmuch-tag-format-image-data (tag data)
\r
114 "Replace TAG with image DATA, if available.
\r