From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: multiple agendas with different headers in agenda view
Date: Fri, 03 Apr 2015 18:55:19 +0200 [thread overview]
Message-ID: <m2lhi9w3rc.fsf@charm-ecran.irisa.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]
reply other threads:[~2015-04-03 16:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2lhi9w3rc.fsf@charm-ecran.irisa.fr \
--to=alan.schmitt@polytechnique.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.