[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] multiple agendas with different headers in agenda view
From: |
Alan Schmitt |
Subject: |
[O] multiple agendas with different headers in agenda view |
Date: |
Fri, 03 Apr 2015 18:55:19 +0200 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.5 (darwin) |
Hello,
I'm trying to build an agenda that have two lists of scheduled items,
one when a tag is absent, the other when the tag is present. Here is
what I tried:
#+begin_src emacs-lisp
(setq org-agenda-custom-commands
(quote (
("w" "Work"
((agenda
""
((org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp
":@Q2:"))))
(agenda
""
((org-agenda-overriding-header "Q2 Scheduled")
(org-agenda-skip-function '(org-agenda-skip-entry-if
'notregexp ":@Q2:")))))))))
#+end_src
Here is the result of the command:
Friday 3 April 2015
GTD: Sched. 5x: TODO ******** :@work:
Cours Caml: Scheduled: TODO ******** :@work:
Work: In 13 d.: TODO **** :@work:
Friday 3 April 2015
JScert: Sched. 5x: TODO [0/2] ******** :@work:@Q2:
Work: Sched. 5x: TODO ****** :@work:@Q2:
The contents of the two agendas is correct, but the header for the
second one is not there. Is it possible to replace the date with
a custom header?
Thanks,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] multiple agendas with different headers in agenda view,
Alan Schmitt <=