* custom agenda on TODO keywords and catagory
@ 2015-06-12 12:43 Xebar Saram
2015-06-12 21:04 ` Myles English
0 siblings, 1 reply; 2+ messages in thread
From: Xebar Saram @ 2015-06-12 12:43 UTC (permalink / raw)
To: org mode
[-- Attachment #1: Type: text/plain, Size: 410 bytes --]
Hi all
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?
best
Z
[-- Attachment #2: Type: text/html, Size: 712 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: custom agenda on TODO keywords and catagory
2015-06-12 12:43 custom agenda on TODO keywords and catagory Xebar Saram
@ 2015-06-12 21:04 ` Myles English
0 siblings, 0 replies; 2+ messages in thread
From: Myles English @ 2015-06-12 21:04 UTC (permalink / raw)
To: Xebar Saram; +Cc: org mode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-12 21:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-12 12:43 custom agenda on TODO keywords and catagory Xebar Saram
2015-06-12 21:04 ` Myles English
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).