From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Kanis Subject: Re: Agenda view with tags filter Date: Wed, 21 Nov 2007 22:42:06 +0100 Message-ID: <87pry36ztd.fsf@kanis.fr> References: <87oddqj669.fsf@kanis.eu> <87lk8tzqhw.fsf@bzg.ath.cx> <87k5odr9c4.fsf@kanis.eu> <8763zxy8z4.fsf@bzg.ath.cx> 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 1IuxTZ-0005sV-NT for emacs-orgmode@gnu.org; Wed, 21 Nov 2007 16:51:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IuxTY-0005r3-CK for emacs-orgmode@gnu.org; Wed, 21 Nov 2007 16:51:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuxTY-0005qm-2B for emacs-orgmode@gnu.org; Wed, 21 Nov 2007 16:51:16 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IuxSc-0001q8-CV for emacs-orgmode@gnu.org; Wed, 21 Nov 2007 16:50:18 -0500 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1IuxSM-00010d-GF for emacs-orgmode@gnu.org; Wed, 21 Nov 2007 21:50:02 +0000 Received: from pir44-1-89-87-99-142.dsl.club-internet.fr ([89.87.99.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Nov 2007 21:50:02 +0000 Received: from expire-by-2007-11-27 by pir44-1-89-87-99-142.dsl.club-internet.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Nov 2007 21:50:02 +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 Bastien writes: > (org-add-agenda-custom-command > '("h" agenda "" > ((org-agenda-skip-function > '(org-agenda-skip-entry 'notregexp ":home:")) > (org-agenda-overriding-header "Agenda with :home: tag:")))) Thanks for the tip, you code did not quite work for me. I think org-agenda-skip-entry was missiong. This works but I think it's bit ugly: (setq org-agenda-custom-commands '(("h" agenda "home" ((org-agenda-skip-function (lambda() (org-agenda-skip-if nil '(notregexp ":home:")))))) ("o" agenda "office" ((org-agenda-skip-function (lambda() (org-agenda-skip-if nil '(notregexp ":office:")))))))) I'll take any better ideas. -- Ivan http://kanis.fr "When faced with a challenge, look for a way, not a way out." -- David Weatherford