emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sven Bretfeld" <sven.bretfeld@gmx.ch>
To: emacs-org <emacs-orgmode@gnu.org>
Subject: Re: Displaying day-resources (or a secondary time-line)
Date: 18 May 2010 01:01:45 +0200	[thread overview]
Message-ID: <8739xq3zfq.fsf@rub.de> (raw)
In-Reply-To: D8C90D51-C11B-49BA-891B-39D9D2781F8C@gmail.com

Hi Carsten and all others

Carsten Dominik <carsten.dominik@gmail.com> writes:

> You can also use diary sexp entries to also do the others, by checking
> for weekdays. See the examples in the FAQ
>
> http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files
>
> For example (untested)
>
> ** Secretary present 8:00-12:00
>    <%%(and (member (calendar-day-of-week date) '(1 3)))>
>
> As for sorting, I guess the easiest would be use a special tag and
> then a custom sorting strategy function in org-agenda-cmp-user-defined
> to sort these to the end of the agenda display.

Thanks for all your suggestions. I didn't know about the power of
diary-sexps. Thanks to Memnon, I have also learned about the
org-agenda-skip-function which I now have used to construct a solution
that works fine for me:

 (setq org-agenda-custom-commands
      '(("q" "Agenda and Metadata"
	 ((agenda "" ((org-agenda-skip-function '(org-agenda-skip-subtree-if
						  'regexp ":META:"))))
	  (agenda "" ((org-agenda-skip-function '(org-agenda-skip-subtree-if
						  'notregexp ":META:"))(org-agenda-overriding-header "Today's resources (metadata): ")))
	  (tags "MIT")
	  (tags "BIGROCK")))))

I would prefer to have this Agenda View bound to the standard C-aa. Is
that possible? Setting "a" via org-agenda-custom-commands results in an
error at starttime. This keybinding seems to be hard-coded.

Greetings,

Sven

  reply	other threads:[~2010-05-17 23:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-08 17:16 Displaying day-resources (or a secondary time-line) Sven Bretfeld
2010-05-11 21:23 ` Sven Bretfeld
2010-05-11 23:11   ` Daniel Martins
2010-05-12 14:52 ` Carsten Dominik
2010-05-17 23:01   ` Sven Bretfeld [this message]
2010-05-18  5:59     ` Carsten Dominik

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=8739xq3zfq.fsf@rub.de \
    --to=sven.bretfeld@gmx.ch \
    --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).