From: Matt Lundin <mdl@imapmail.org>
To: Markus Heller <hellerm2@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Accessing CATEGORY for custom agenda command
Date: Fri, 18 Mar 2011 19:10:48 -0400 [thread overview]
Message-ID: <8762rggh3b.fsf@fastmail.fm> (raw)
In-Reply-To: <0vtygacs6z.fsf@gmail.com> (Markus Heller's message of "Fri, 11 Feb 2011 11:00:20 -0800")
Markus Heller <hellerm2@gmail.com> writes:
> I'm trying to get the following to work:
>
> (org-add-agenda-custom-command
> '("X" tags "Task"
> ((org-agenda-skip-function '(org-agenda-skip-entry-if
> 'notregexp "Admin"))
> (org-agenda-overriding-header " Test"))))
>
>
> I want all entries that have the tag "TASK" and that have the category
> "Admin" shown in the agenda.
Sorry for the late reply, but a simple way to do this is to change the
query. This will pick up categories regardless of whether they are
defined in the subtree or at the top of the file:
--8<---------------cut here---------------start------------->8---
(org-add-agenda-custom-command
'("X" tags "TASK+CATEGORY=\"Admin\""
((org-agenda-overriding-header " Test"))))
--8<---------------cut here---------------end--------------->8---
Best,
Matt
next prev parent reply other threads:[~2011-03-18 23:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 19:00 Accessing CATEGORY for custom agenda command Markus Heller
2011-02-11 19:39 ` Bastien
2011-02-11 23:28 ` Markus Heller
2011-03-18 23:10 ` Matt Lundin [this message]
2011-03-21 20:32 ` Markus Heller
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=8762rggh3b.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=hellerm2@gmail.com \
/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).