[PATCH] emacs: Make highlight-faces for pick configurable
authorDaniel Schoepe <daniel@schoepe.org>
Sun, 12 Feb 2012 14:47:18 +0000 (15:47 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:22 +0000 (09:44 -0800)
a4/faf74a3c37dd990e2d17da35cea3a636ad628a [new file with mode: 0644]

diff --git a/a4/faf74a3c37dd990e2d17da35cea3a636ad628a b/a4/faf74a3c37dd990e2d17da35cea3a636ad628a
new file mode 100644 (file)
index 0000000..b9761b2
--- /dev/null
@@ -0,0 +1,111 @@
+Return-Path: <daniel@schoepe.org>\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 CC2EE421169\r
+       for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:47:35 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.8\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\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 zGff0vypybLO for <notmuch@notmuchmail.org>;\r
+       Sun, 12 Feb 2012 06:47:35 -0800 (PST)\r
+Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com\r
+ [74.125.83.53])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ AF123429E5F   for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:47:32 -0800\r
+ (PST)\r
+Received: by eeke51 with SMTP id e51so2239036eek.26\r
+       for <notmuch@notmuchmail.org>; Sun, 12 Feb 2012 06:47:31 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google;\r
+       h=mime-version:from:to:cc:subject:date:message-id:x-mailer\r
+       :in-reply-to:references;\r
+       bh=prSjp0+yd8f6YVF9mfS/iYEfAhpSVFPh4KTHtQWYACs=;\r
+       b=Xuml1fACnA/Nf69StEN/pYaMOgVnWIQSPOuE4aQmt91fmhri5qI/V07TyOsbJUXEJf\r
+       O5QGjzPrUxc/sf4fyY0t5+RE02UDgzB4VC70rWL/p0fn/z3JAY/AmWm7w0b+OjhLOjim\r
+       bzHaexNSU1sqHfQRtl68KbVb9WoOmrmfP/4qs=\r
+MIME-Version: 1.0\r
+Received: by 10.213.27.73 with SMTP id h9mr789774ebc.31.1329058051484;\r
+       Sun, 12 Feb 2012 06:47:31 -0800 (PST)\r
+Received: from localhost (dslb-088-069-141-163.pools.arcor-ip.net.\r
+       [88.69.141.163])\r
+       by mx.google.com with ESMTPS id n56sm49411338eeh.6.2012.02.12.06.47.30\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sun, 12 Feb 2012 06:47:30 -0800 (PST)\r
+From: Daniel Schoepe <daniel@schoepe.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: Make highlight-faces for pick configurable\r
+Date: Sun, 12 Feb 2012 15:47:18 +0100\r
+Message-Id: <1329058038-6029-2-git-send-email-daniel@schoepe.org>\r
+X-Mailer: git-send-email 1.7.9\r
+In-Reply-To: <1329058038-6029-1-git-send-email-daniel@schoepe.org>\r
+References: <87d39k1gvi.fsf@qmul.ac.uk>\r
+       <1329058038-6029-1-git-send-email-daniel@schoepe.org>\r
+X-Gm-Message-State:\r
+ ALoCoQnRpKOIEpWQia6Z4/AoKBGOWYBattifV8o3laxJqvFfoUcgZfTj9mr0HLbM2T/EZEln7An/\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: Sun, 12 Feb 2012 14:47:36 -0000\r
+\r
+---\r
+ emacs/notmuch-pick.el |   21 ++++++++++++++++++---\r
+ 1 files changed, 18 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el\r
+index 4c91d7c..2bf1ae4 100644\r
+--- a/emacs/notmuch-pick.el\r
++++ b/emacs/notmuch-pick.el\r
+@@ -42,6 +42,22 @@\r
+   :group 'notmuch\r
+   :type 'int)\r
\r
++(defface notmuch-pick-match-face\r
++  '((((class color)\r
++      (background dark))\r
++     (:foreground "white"))\r
++    (((class color)\r
++      (background light))\r
++     (:foreground "black"))\r
++    (t (:bold t)))\r
++  "Face used in pick mode for matching messages."\r
++  :group 'notmuch)\r
++\r
++(defface notmuch-pick-no-match-face\r
++  '((t (:foreground "gray")))\r
++  "Face used in pick mode for messages not matching the query."\r
++  :group 'notmuch)\r
++\r
+ (defvar notmuch-pick-previous-subject "")\r
+ (make-variable-buffer-local 'notmuch-pick-previous-subject)\r
\r
+@@ -415,10 +431,9 @@ unchanged ADDRESS if parsing fails."\r
+        (match (plist-get msg :match))\r
+        (tags (plist-get msg :tags))\r
+        (bare-subject (notmuch-show-strip-re (plist-get headers :Subject)))\r
+-       ;; Face should be a defcustom or something MJW\r
+        (message-face (if match\r
+-                         '(:foreground "black")\r
+-                     '(:foreground "gray"))))\r
++                         'notmuch-pick-match-face\r
++                       'notmuch-pick-no-match-face)))\r
\r
+     (insert (propertize (concat\r
+                        (notmuch-pick-string-width\r
+-- \r
+1.7.9\r
+\r