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 EF22A431FBC for ; Thu, 26 Jan 2012 11:21:25 -0800 (PST) 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 p-h3z67N1taI for ; Thu, 26 Jan 2012 11:21:25 -0800 (PST) Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 325F5431FAF for ; Thu, 26 Jan 2012 11:21:25 -0800 (PST) Received: by lahd3 with SMTP id d3so581639lah.26 for ; Thu, 26 Jan 2012 11:21:23 -0800 (PST) Received: by 10.112.44.1 with SMTP id a1mr983244lbm.67.1327605683535; Thu, 26 Jan 2012 11:21:23 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi. [84.248.80.253]) by mx.google.com with ESMTPS id 5sm3885514lah.0.2012.01.26.11.21.21 (version=SSLv3 cipher=OTHER); Thu, 26 Jan 2012 11:21:22 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH] emacs: add default value to notmuch-search-line-faces Date: Thu, 26 Jan 2012 21:21:19 +0200 Message-Id: <1327605679-15213-1-git-send-email-jani@nikula.org> X-Mailer: git-send-email 1.7.5.4 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, 26 Jan 2012 19:21:26 -0000 Add default value to notmuch-search-line-faces to show "unread" messages in bold, and "flagged" messages in red, 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 6b2c252..551ea9d 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -662,7 +662,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 "red")) "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