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 84A1E431FBD for ; Mon, 10 Mar 2014 19:09:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 QcqW+uAmNLnW for ; Mon, 10 Mar 2014 19:09:33 -0700 (PDT) Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu [18.7.68.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id F26A6431FBC for ; Mon, 10 Mar 2014 19:09:32 -0700 (PDT) X-AuditID: 12074423-f79726d000000cc9-b4-531e705c0ac5 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP id E6.9F.03273.C507E135; Mon, 10 Mar 2014 22:09:32 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id s2B29UJk025645; Mon, 10 Mar 2014 22:09:31 -0400 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s2B29SU6008979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 10 Mar 2014 22:09:30 -0400 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80) (envelope-from ) id 1WNC8G-0008Jg-GQ; Mon, 10 Mar 2014 22:09:28 -0400 From: Austin Clements To: Mark Walters , notmuch@notmuchmail.org Subject: Re: [PATCH v2 3/7] emacs: tag: add customize for deleted/added tag formats In-Reply-To: <1392841212-8494-4-git-send-email-markwalters1009@gmail.com> References: <1392841212-8494-1-git-send-email-markwalters1009@gmail.com> <1392841212-8494-4-git-send-email-markwalters1009@gmail.com> User-Agent: Notmuch/0.17~rc2+14~g06f47e0 (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Mon, 10 Mar 2014 22:09:28 -0400 Message-ID: <87bnxd32qv.fsf@awakening.csail.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsUixCmqrBtTIBds0PGL02L1XB6L6zdnMjsw eeycdZfd49mqW8wBTFFcNimpOZllqUX6dglcGZ3/NzIXLBKoeLGguoFxLm8XIyeHhICJxN/3 m5khbDGJC/fWs4HYQgKzmSSevDXsYuQCsjcySmxp28AK4ZwGSrxYzwThLGGUOLZ/DxNIC5uA hsS2/csZQWwRAVeJp98+g40VFgiW2L73HjuIzSngKdEyoZcFormVUeLihB9g+0QFkiROT/3N CmKzCKhK3H+9AKyZF+i+lZMamSBsQYmTM5+wgNjMAloSN/69ZJrAKDALSWoWktQCRqZVjLIp uVW6uYmZOcWpybrFyYl5ealFumZ6uZkleqkppZsYQQHJ7qK8g/HPQaVDjAIcjEo8vCv95YKF WBPLiitzDzFKcjApifKuywQK8SXlp1RmJBZnxBeV5qQWH2KU4GBWEuE9bQGU401JrKxKLcqH SUlzsCiJ8/adlQgWEkhPLEnNTk0tSC2CycpwcChJ8C7NB2oULEpNT61Iy8wpQUgzcXCCDOcB Gr4epIa3uCAxtzgzHSJ/ilFRSpx3FkhCACSRUZoH1wtLGK8YxYFeEeZ1B6niASYbuO5XQIOZ gAY3H5cCGVySiJCSamAUdNaS+BdYopd/tqKWkV2XJZdfUOl8zp6bds93bky5tVrMRfwX589T WhePP795aOGPecGvn2pKB6kJP9h9qzHZ7NfJtUyztnGw1FovCv6omfAwVkrte3H4jAl8e+T0 Yl54Mh97vFpXK+pXqzFT1M+uCB75r2c4YpXnHUrbVyubELbq8aWC4BYlluKMREMt5qLiRAAI fuCU8wIAAA== 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: Tue, 11 Mar 2014 02:09:39 -0000 On Wed, 19 Feb 2014, Mark Walters wrote: > Add customize options for deleted/added tag formats. These are not > used yet but will be later in the series. > --- > emacs/notmuch-tag.el | 31 +++++++++++++++++++++++++++++++ > 1 files changed, 31 insertions(+), 0 deletions(-) > > diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el > index 878aaf7..064fbdb 100644 > --- a/emacs/notmuch-tag.el > +++ b/emacs/notmuch-tag.el > @@ -101,6 +101,37 @@ 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. > + > +For deleted tags the formats in `notmuch-tag-formats` are applied > +first and then these formats are applied on top. > + > +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)) Should this be '((\".*\" 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. > + > +For added tags the formats in `notmuch-tag-formats` are applied > +first and then these formats are applied on top. > + > +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 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch