emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Markus Heller <hellerm2@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Accessing CATEGORY for custom agenda command
Date: Mon, 21 Mar 2011 13:32:35 -0700	[thread overview]
Message-ID: <0vaago2p0c.fsf@gmail.com> (raw)
In-Reply-To: 8762rggh3b.fsf@fastmail.fm

Matt Lundin <mdl@imapmail.org> writes:

> 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:
>
> (org-add-agenda-custom-command
>  '("X" tags "TASK+CATEGORY=\"Admin\""
>    ((org-agenda-overriding-header "  Test"))))

Hi Matt,

thanks for the reply.  Looks good to me, will play around with it.  Now
if I could only figure out how to use CATEGORY in my clock report ...

Cheers
Markus

      reply	other threads:[~2011-03-21 20:33 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
2011-03-21 20:32   ` Markus Heller [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

  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=0vaago2p0c.fsf@gmail.com \
    --to=hellerm2@gmail.com \
    --cc=emacs-orgmode@gnu.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).