Martin Pohlack <m...@os.inf.tu-dresden.de> 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


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to