From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Trying to use a custom face for highlighting tags used in agenda filtering Date: Sat, 29 Oct 2011 13:25:19 +0200 Message-ID: <87mxckyr8g.fsf@gnu.org> References: <80pqhjpkoy.fsf@somewhere.org> <801utyrv1o.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK71X-0000Nb-6D for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 07:24:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK71V-0004sP-W4 for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 07:24:27 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:44683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK71V-0004sL-PR for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 07:24:25 -0400 Received: by wwe32 with SMTP id 32so3309185wwe.0 for ; Sat, 29 Oct 2011 04:24:24 -0700 (PDT) In-Reply-To: <801utyrv1o.fsf@somewhere.org> (Sebastien Vauban's message of "Thu, 27 Oct 2011 23:20:19 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org Hi Sébastien, "Sebastien Vauban" writes: > Please find a (very useful ;-)) patch for highlighting (in the mode-line) the > tags which are used to filter the agenda. Applied thanks. I've updated the patch using org-propertize instead of propertize and using a better default for the face :) > I'd like even to be able to put in one color the "positive" tags and in > another the "negative" ones, but that's above my current knowledge of > text-properties... Maybe you can start by replacing the 'identity function in the (mapconcat ...) by some (lambda (f) (if ...)) to check whether each tag filter starts with a + or a -. Just an idea. > Anyway, here is a usable first version -- where all tags are in the same > color, much more easily to spot (before you wonder why you have so few lines > in your agenda!). Yes, it might be useful to some people -- thanks for this! -- Bastien