[PATCH 3/7] emacs: tag: add customize for deleted/added tag formats
authorMark Walters <markwalters1009@gmail.com>
Sat, 18 Jan 2014 23:30:51 +0000 (23:30 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:07 +0000 (09:59 -0800)
43/5460f7d39c7c5c8ca930df30b2f9eb2c875410 [new file with mode: 0644]

diff --git a/43/5460f7d39c7c5c8ca930df30b2f9eb2c875410 b/43/5460f7d39c7c5c8ca930df30b2f9eb2c875410
new file mode 100644 (file)
index 0000000..ec8829b
--- /dev/null
@@ -0,0 +1,108 @@
+Return-Path: <markwalters1009@gmail.com>\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 6B6B3431FBD\r
+       for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 15:31:16 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 oupnvAS9rsa7 for <notmuch@notmuchmail.org>;\r
+       Sat, 18 Jan 2014 15:31:12 -0800 (PST)\r
+Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com\r
+ [74.125.82.52])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ EA2FB431FC2   for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 15:31:07 -0800\r
+ (PST)\r
+Received: by mail-wg0-f52.google.com with SMTP id b13so5678152wgh.31\r
+       for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 15:31:06 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+       bh=ppUE4B7/hHm/RTGI8RCZyO78sKtVa/Br72lzplHOZ7k=;\r
+       b=tX3h5AWZ7qDVPLSx/yWMOulKznKHF6qAW5PU0BcQwSmYp+BEih/RaKYM9sheNaUudw\r
+       QaVI0KTQEaXKQRdoXNiVkE+S+Gj0unFMtiiiumpKkJubiGHZFch3WhIw/Za+LCd1wT9h\r
+       y9NHgQIMmcElBWQ0jMXciSFdLE61nEGRIwS9JyRrF27zAgaUcxpQ4t6Il8oppPSdLiG4\r
+       BQ2TOQZmIafx/ffTDxxlUhxIUZDx0YH+8K9OWRpn2RMWRqN63m4L0TnM7F38HtK5vyNl\r
+       VsyXGm0kNylYEKek+hQSagnxdpfoCg+BstlEHPONEyfYHGW6KgzyW1zF3w+2HMpfE95Q\r
+       5IqA==\r
+X-Received: by 10.180.79.38 with SMTP id g6mr4039094wix.60.1390087866700;\r
+       Sat, 18 Jan 2014 15:31:06 -0800 (PST)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPSA id po3sm13864889wjc.3.2014.01.18.15.31.06\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sat, 18 Jan 2014 15:31:06 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/7] emacs: tag: add customize for deleted/added tag formats\r
+Date: Sat, 18 Jan 2014 23:30:51 +0000\r
+Message-Id: <1390087855-26194-4-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1390087855-26194-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1390087855-26194-1-git-send-email-markwalters1009@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Sat, 18 Jan 2014 23:31:16 -0000\r
+\r
+Add customize options for deleted/added tag formats.  These are not\r
+used yet but will be later in the series.\r
+---\r
+ emacs/notmuch-tag.el |   25 +++++++++++++++++++++++++\r
+ 1 files changed, 25 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el\r
+index 92c1249..9757a0e 100644\r
+--- a/emacs/notmuch-tag.el\r
++++ b/emacs/notmuch-tag.el\r
+@@ -86,6 +86,31 @@ with images."\r
+   :group 'notmuch-show\r
+   :type 'notmuch-tag-format-type)\r
\r
++(defcustom notmuch-tag-deleted-formats\r
++  '(("" (propertize tag 'face\r
++                 (if (display-supports-face-attributes-p '(:strike-through "red"))\r
++                     '(:strike-through "red")\r
++                   '(:inverse-video t)))))\r
++  "Custom formats for tags when deleted.\r
++\r
++By default this shows deleted tags with strike-through in red,\r
++unless strike-through is not available (e.g., emacs is running in\r
++a terminal) in which case it uses inverse video. To hide deleted\r
++tags completely set this to\r
++  '((\"\" nil))\r
++\r
++See `notmuch-tag-formats' for full documentation."\r
++  :group 'notmuch-show\r
++  :type 'notmuch-tag-format-type)\r
++\r
++(defcustom notmuch-tag-added-formats\r
++  '(("" (propertize tag 'face '(:underline "green"))))\r
++  "Custom formats for tags when added.\r
++\r
++See `notmuch-tag-formats' for full documentation."\r
++  :group 'notmuch-show\r
++  :type 'notmuch-tag-format-type)\r
++\r
+ (defun notmuch-tag-format-image-data (tag data)\r
+   "Replace TAG with image DATA, if available.\r
\r
+-- \r
+1.7.9.1\r
+\r