[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Partial tags match in custom agenda?
From: |
Paul Mead |
Subject: |
[Orgmode] Re: Partial tags match in custom agenda? |
Date: |
Thu, 14 Jan 2010 16:58:37 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Martin Pohlack <address@hidden> writes:
> Hi Paul,
>
> You can do regexp matching on tags. My agenda tags all start with ag_
> (for people), agM_ (meetings) or agC_ (calls).
>
> This snippet from my org-agenda-custom-commands shows how to use this:
>
> (tags "{^ag[MC]_.*}-maybe-TODO=\"\"-SCHEDULED>\"<today>\""
> ((org-agenda-overriding-header "Agendas (regular):")
> (org-agenda-sorting-strategy
> '(tag-up))
> (org-agenda-skip-function
> '(org-agenda-skip-subtree-if 'regexp "^\\*+
> \\(DONE\\|CANC\\|CONT\\|PROJ\\|MAYBE\\) "))))
> (tags "{^ag_.*}-maybe-TODO=\"\"-SCHEDULED>\"<today>\""
> ((org-agenda-overriding-header "Agendas (non-regular):")
> (org-agenda-sorting-strategy
> '(tag-up))
> (org-agenda-skip-function
> '(org-agenda-skip-subtree-if 'regexp "^\\*+
> \\(DONE\\|CANC\\|CONT\\|PROJ\\|MAYBE\\) "))))
>
> Cheers,
> Martin
Thanks Martin, this has been very useful - I didn't know about the
regexp thing, I'm sure I'm going to use it elsewhere!
Paul