From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sven Bretfeld" Subject: Re: Displaying day-resources (or a secondary time-line) Date: 18 May 2010 01:01:45 +0200 Message-ID: <8739xq3zfq.fsf@rub.de> References: <87vdays499.fsf@gmx.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=50056 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE9K3-0000mV-8y for emacs-orgmode@gnu.org; Mon, 17 May 2010 19:02:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE9Ju-0006NI-Pz for emacs-orgmode@gnu.org; Mon, 17 May 2010 19:02:07 -0400 Received: from mx4.rz.ruhr-uni-bochum.de ([134.147.64.53]:42071) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OE9Ju-0006Mr-CG for emacs-orgmode@gnu.org; Mon, 17 May 2010 19:01:58 -0400 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-org Hi Carsten and all others Carsten Dominik 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