From mboxrd@z Thu Jan 1 00:00:00 1970 From: Memnon Anon Subject: Re: limit agenda to particular tag? Date: Tue, 28 Jul 2009 14:56:36 +0000 (UTC) Message-ID: <871vo03lgh.fsf@mean.albasani.net> References: <861vo19ctj.fsf@ankh.home.genehack.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVo6t-0008It-4c for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 10:56:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVo6p-0008A5-EQ for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 10:56:58 -0400 Received: from [199.232.76.173] (port=43931 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVo6p-00089y-Bb for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 10:56:55 -0400 Received: from mx20.gnu.org ([199.232.41.8]:47146) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVo6o-0002aH-SS for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 10:56:55 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVo6o-0004wI-0w for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 10:56:54 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MVo6l-0003Jg-JG for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 14:56:51 +0000 Received: from e178209243.adsl.alicedsl.de ([85.178.209.243]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jul 2009 14:56:51 +0000 Received: from gegendosenfleisch by e178209243.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Jul 2009 14:56:51 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John SJ Anderson writes: > Is there a way to display an agenda (like 'C-a a' does) but have it > limited to items that have a particular tag? (E.g., so I can see only > '@WORK' items when at work.) Either use your agenda and use / to limit the view to what you want. Or create a custom agenda command: I have something like this: (setq org-agenda-custom-commands '(("f" "Agenda without Items tagged xyz" ((agenda "")) ((org-agenda-show-log nil) (org-agenda-ndays 1) (org-agenda-log-mode-items '(state)) (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":XYZ:")))) ;; other commands here ("d" "Agenda only Items tagged xyz" ((agenda "")) ((org-agenda-show-log nil) (org-agenda-ndays 1) (org-agenda-log-mode-items '(state)) (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":XYZ:")))) ;; other commands here ("w" todo "WAITING") ("g" todo "STARTED") )) hth memnon