From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: Re: Possible to exclude/include tags for agenda custom commands? Date: Thu, 13 Feb 2020 19:39:50 +0000 Message-ID: References: <8736bfxwu0.fsf@bzg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40917) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2KLJ-0004K0-BR for emacs-orgmode@gnu.org; Thu, 13 Feb 2020 14:40:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2KLF-0005Zl-Ij for emacs-orgmode@gnu.org; Thu, 13 Feb 2020 14:40:08 -0500 In-Reply-To: <8736bfxwu0.fsf@bzg.fr> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: emacs-orgmode@gnu.org Hi Bastien, Bastien writes: >> I can easily do this in the list of TODOs, with a tag search. However, I >> haven't figured out how to do this for the agenda. Is it possible? If >> so, how? > > From what I understand, check `org-agenda-tag-filter' to see how to > use it within an agenda custom command. Thank you! That did indeed do it. FWIW my stanza looks like this now: (setq org-agenda-custom-commands '(("w" "Work Agenda" ((agenda "" ((org-agenda-span 'day))) (todo "TODO" ((org-agenda-max-entries 5) (org-agenda-todo-ignore-scheduled 'all) (org-agenda-todo-ignore-deadlines 'all) (org-agenda-todo-ignore-timestamp 'all)))) ((org-agenda-tag-filter '("-@home" "-MAYBE")))) ("h" "Home Agenda" ((agenda "") (todo "TODO" ((org-agenda-max-entries 5) (org-agenda-todo-ignore-scheduled 'all) (org-agenda-todo-ignore-deadlines 'all) (org-agenda-todo-ignore-timestamp 'all)))) ((org-agenda-tag-filter '("-@work" "-MAYBE")))) ("m" "Maybe" ((todo "PROJ") (tags-todo "-PROJ/TODO")) ((org-agenda-tag-filter '("MAYBE")))) ("P" "Projects" tags-todo "-MAYBE/PROJ")))) Stig