emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Michael Gilbert <mcg@gilbert.org>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: filter agenda by priority?
Date: Sat, 10 Apr 2010 17:13:02 +0200	[thread overview]
Message-ID: <3ADE5400-323D-459A-A3EF-A7226F9FBF05@gmail.com> (raw)
In-Reply-To: <B9D30B49-166E-4EF8-BB39-6C48D2022563@gilbert.org>


On Apr 10, 2010, at 12:00 AM, Michael Gilbert wrote:

> Hi all —
>
> Been through the manual. Might be missing something obvious. But, is  
> there a straightforward way to filter the Agenda by Priority? I find  
> that I would actually USE priorities more if I could figure out how  
> to do this.

You can have the agenda sorted by priority, or you can do a tags/todo/ 
category search for a particular priority.  For example

C-c a M PRIORITY="A"

If you want to have the daily/weekly agenda for only a single  
priority, you would have to use a skipping conditon. Here is how such  
a setup would look in the customization buffer for org-agenda-custom- 
commands,

Org Agenda Custom Commands: Hide Value
INS DEL Choice: Value Menu Single command:
             Access Key(s) : x
             [X] Description: Agenda for priority A
             Choice: Value Menu Agenda
             Match (only for some commands):
             Local settings for this command. Remember to quote values:
             INS DEL Setting: Value Menu Non-standard skipping  
condition:
                         org-agenda-skip-function
                         Function or form (quoted!): '(and (not (equal  
"A" (org-entry-get nil "PRIORITY"))) (point-at-eol))
             INS
             [ ] Export:
                 INS


And the lisp representation is:

(push '("x" "Agenda for priority A" agenda ""
	((org-agenda-skip-function
	  '(and
	    (not
	     (equal "A"
		    (org-entry-get nil "PRIORITY")))
	    (point-at-eol)))))
       org-agenda-custom-cammands)


Hope this helps

- Carsten





>
> TIA!
>
> — Michael
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

      reply	other threads:[~2010-04-10 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-09 22:00 filter agenda by priority? Michael Gilbert
2010-04-10 15:13 ` Carsten Dominik [this message]

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=3ADE5400-323D-459A-A3EF-A7226F9FBF05@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mcg@gilbert.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).