emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Trying to use a custom face for highlighting tags used in agenda filtering
Date: Sat, 29 Oct 2011 21:36:31 +0200	[thread overview]
Message-ID: <80mxcja8u8.fsf@somewhere.org> (raw)
In-Reply-To: 87mxckyr8g.fsf@gnu.org

Hi Bastien,

Bastien wrote:
> "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>
>> Please find a (very useful ;-)) patch for highlighting (in the mode-line)
>> the tags which are used to filter the agenda.
>
> Applied thanks.

Thanks.

> I've updated the patch using org-propertize instead of propertize

OK, for better XEmacs support, if I understand well.

> and using a better default for the face :)

Well, I wouldn't call org-default a better default, but that's fine with me. I
mean: if org-default is black for the majority of the people, they won't even
see that you can customize that aspect of the modeline (in a light scheme).
So, I prefer some color (I chose orange) that everybody can customize, and
that makes everybody be aware of the tags used for filtering (in this case).
But, as said, I don't mind the default: I'll customize it anyway for my own
usage.

>> 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.

Just that I'm still to ignorant of the inner working of property list. But
it's nice to give me a hint. That could help me to quicklier come with a
working solution.

>> 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!

Glad if it's of use.

Best regards,
  Seb

-- 
Sebastien Vauban

  reply	other threads:[~2011-10-29 19:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26 20:22 Trying to use a custom face for highlighting tags used in agenda filtering Sebastien Vauban
2011-10-27 21:20 ` Sebastien Vauban
2011-10-29 11:25   ` Bastien
2011-10-29 19:36     ` Sebastien Vauban [this message]
2011-10-29 23:39       ` Bastien
2011-12-08 13:49         ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80mxcja8u8.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).