From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: custom agenda on TODO keywords and catagory Date: Fri, 12 Jun 2015 22:04:43 +0100 Message-ID: <87y4johc44.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3W7Y-000472-2Z for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 17:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3W7U-0003ux-QW for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 17:04:12 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:37594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3W7U-0003ur-Jq for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 17:04:08 -0400 Received: by wifx6 with SMTP id x6so26822463wif.0 for ; Fri, 12 Jun 2015 14:04:07 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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