emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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 --]


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"
                 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp ":@Q2:"))))
                 ((org-agenda-overriding-header "Q2 Scheduled")
                  (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":@Q2:")))))))))

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?



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:

  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=m2lhi9w3rc.fsf@charm-ecran.irisa.fr \
    --to=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \


* 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


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).