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