From: Paul Mead <paul.d.mead@googlemail.com>
To: Martin Pohlack <mp26@os.inf.tu-dresden.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Partial tags match in custom agenda?
Date: Thu, 14 Jan 2010 16:58:37 +0000 [thread overview]
Message-ID: <87k4vkzkqq.fsf@gmail.com> (raw)
In-Reply-To: <4B4F28DA.9030208@os.inf.tu-dresden.de> (Martin Pohlack's message of "Thu, 14 Jan 2010 15:23:22 +0100")
Martin Pohlack <mp26@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
prev parent reply other threads:[~2010-01-14 16:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-14 11:02 Partial tags match in custom agenda? Paul Mead
2010-01-14 14:23 ` Martin Pohlack
2010-01-14 16:58 ` Paul Mead [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k4vkzkqq.fsf@gmail.com \
--to=paul.d.mead@googlemail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mp26@os.inf.tu-dresden.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.