From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Shortcut for complex searches Date: Thu, 18 Mar 2010 13:39:14 -0400 Message-ID: <87y6hp1qd9.fsf@fastmail.fm> References: 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 1NsJgD-0005ai-S6 for emacs-orgmode@gnu.org; Thu, 18 Mar 2010 13:38:45 -0400 Received: from [140.186.70.92] (port=44396 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsJgC-0005YG-4I for emacs-orgmode@gnu.org; Thu, 18 Mar 2010 13:38:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NsJgA-0000Vl-HP for emacs-orgmode@gnu.org; Thu, 18 Mar 2010 13:38:43 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:43065) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NsJgA-0000VH-E4 for emacs-orgmode@gnu.org; Thu, 18 Mar 2010 13:38:42 -0400 In-Reply-To: (Alessandro Pacaccio's message of "Thu, 18 Mar 2010 14:08:16 +0000 (UTC)") 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: Alessandro Pacaccio Cc: emacs-orgmode@gnu.org Alessandro Pacaccio writes: > Hi, > > I need a list of TODO items that match a given tag and are not > scheduled after a given date. I use the C-c a M shortcut with the > following search string: +mytag+TODO="TODO"-SCHEDULED>"2000-01-01" > > My question is: as I frequently use this search, is it possible to > configure the command in the org-agenda-custom-commands variable? --8<---------------cut here---------------start------------->8--- (setq org-agenda-custom-commands '(("x" "Special Todo" tags-todo "+mytag+TODO=\"TODO\"-SCHEDULED>\"2000-01-01") ;; other commands here )) --8<---------------cut here---------------end--------------->8--- For more details on how to customize org-agenda-custom-commands, you might want to check out the tutorial on Worg: http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php Best, Matt