From: Myles English <mylesenglish@gmail.com>
To: Xebar Saram <zeltakc@gmail.com>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: custom agenda on TODO keywords and catagory
Date: Fri, 12 Jun 2015 22:04:43 +0100 [thread overview]
Message-ID: <87y4johc44.fsf@gmail.com> (raw)
In-Reply-To: <CAOQHXPqhrkv=zEifZG0kZnQpPFAS_kszKc+WCy6qrLRm=U+i1w@mail.gmail.com>
Hello Xebar,
Xebar Saram writes:
> im trying to create a custom agenda based on TODO keywords and category but
> with no success. i have this code block
>
> ("z" "Office block agenda" todo "TODO|BGU|EXP"
> (
> (tags-todo "CATEGORY=\"work\"")
> ))
>
>
> this does work but shows the 3 todo types from all agenda files and not
> just agenda files that have the #+CATEGORY: work on top
>
> any clue what im missing here?
I think you are mixing up the two ways of using the variable. From the
help (view it by doing C-h v org-agenda-custom-commands) the two ways
are:
(key desc type match settings files)
(key desc (cmd1 cmd2 ...) general-settings-for-whole-set files)
Therefore, I think if you are aiming for the first version you would use
tags-todo in place of todo and merge the category clause into the todo
keyword clause and it should give you what you want.
Myles
prev parent reply other threads:[~2015-06-12 21:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 12:43 custom agenda on TODO keywords and catagory Xebar Saram
2015-06-12 21:04 ` Myles English [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=87y4johc44.fsf@gmail.com \
--to=mylesenglish@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=zeltakc@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).