emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Alessandro Pacaccio <alessandro.pacaccio@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Shortcut for complex searches
Date: Thu, 18 Mar 2010 13:39:14 -0400	[thread overview]
Message-ID: <87y6hp1qd9.fsf@fastmail.fm> (raw)
In-Reply-To: <loom.20100318T150455-360@post.gmane.org> (Alessandro Pacaccio's message of "Thu, 18 Mar 2010 14:08:16 +0000 (UTC)")

Alessandro Pacaccio <alessandro.pacaccio@gmail.com> 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

  reply	other threads:[~2010-03-18 17:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-18 14:08 Shortcut for complex searches Alessandro Pacaccio
2010-03-18 17:39 ` Matt Lundin [this message]
2010-03-18 17:52 ` Łukasz Stelmach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y6hp1qd9.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=alessandro.pacaccio@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).