From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7BC90431FAF for ; Thu, 2 Feb 2012 06:58:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 j-jJUBJVZNIo for ; Thu, 2 Feb 2012 06:58:50 -0800 (PST) Received: from mail-lpp01m020-f181.google.com (mail-lpp01m020-f181.google.com [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B6643431FAE for ; Thu, 2 Feb 2012 06:58:49 -0800 (PST) Received: by lbbgn5 with SMTP id gn5so552983lbb.26 for ; Thu, 02 Feb 2012 06:58:46 -0800 (PST) Received: by 10.112.30.73 with SMTP id q9mr855454lbh.30.1328194726751; Thu, 02 Feb 2012 06:58:46 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi. [84.248.80.253]) by mx.google.com with ESMTPS id k13sm2193000lbu.16.2012.02.02.06.58.43 (version=SSLv3 cipher=OTHER); Thu, 02 Feb 2012 06:58:44 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v2] emacs: add default value to notmuch-search-line-faces Date: Thu, 2 Feb 2012 16:58:41 +0200 Message-Id: <1328194721-6010-1-git-send-email-jani@nikula.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1327605679-15213-1-git-send-email-jani@nikula.org> References: <1327605679-15213-1-git-send-email-jani@nikula.org> 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: Thu, 02 Feb 2012 14:58:50 -0000 Add default value to notmuch-search-line-faces to show "unread" messages in bold, and "flagged" messages in blue, to have some visual indication of important messages in search results. This should be helpful for new users. "unread" tag is quite obvious, and handled specially both in the lib and emacs ui. "flagged" is synced to maildir F flag in the lib. If one syncs the maildir to IMAP, this also translates to corresponding IMAP flag. (This is "starred" in GMail and Android.) Signed-off-by: Jani Nikula --- emacs/notmuch.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 5fa239a..bbf0aec 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -688,7 +688,8 @@ This function advances the next thread when finished." (goto-char (point-min)) (forward-line (1- notmuch-search-target-line)))))))) -(defcustom notmuch-search-line-faces nil +(defcustom notmuch-search-line-faces '(("unread" :weight bold) + ("flagged" :foreground "blue")) "Tag/face mapping for line highlighting in notmuch-search. Here is an example of how to color search results based on tags. -- 1.7.5.4