From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: multiple agendas with different headers in agenda view Date: Fri, 03 Apr 2015 18:55:19 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye4sZ-0006Au-Nj for emacs-orgmode@gnu.org; Fri, 03 Apr 2015 12:55:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ye4sW-0000FY-1b for emacs-orgmode@gnu.org; Fri, 03 Apr 2015 12:55:35 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:53645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ye4sV-0000FB-Rq for emacs-orgmode@gnu.org; Fri, 03 Apr 2015 12:55:31 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 'reg= exp ":@Q2:")))) (agenda "" ((org-agenda-overriding-header "Q2 Scheduled") (org-agenda-skip-function '(org-agenda-skip-entry-if 'not= regexp ":@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 =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJVHsYAAAoJEAQNCjtO0uXH7gUH/RX2b3P0L2H+B6WMbno1dzQf gSPQgqrlDlVOQWSfDWTgcl2XaLSfwIr+2mYjnfYW5nhs0mNbvVF4WonrZbEafI2L MXN1HLwiPyYkU00eqZPy2a0Br92eKczaHp5YKg4xAu/+GXbOg/QZFn14nRWvDBRx B6I1xptFbXE+ToGExR+IUuw3zxnTUa8Hfv3yo8dJpEtBbbgDIL0nipK0+PZLKscB 8s/m1g7AOgX//u7hLRXHAsaki+4GlY9fFeXZ8MZycdvTE7vEMC14UFHx0AdnqP7X yIVdVxP4WWbfu35vgi4lcwIEpYwDPeNnRnKuKLj/rt82/+/umB9Adr2cHTVRdvY= =58cN -----END PGP SIGNATURE----- --=-=-=--