From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Loury Subject: Re: need: custom agenda for last 7 days Date: Thu, 21 Feb 2013 13:35:04 +0100 Message-ID: <87zjyxkfpj.fsf@konixwork.incubateur.ens-lyon.fr> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8VVT-0002pk-0t for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 07:44:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8VVL-00068d-2T for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 07:44:10 -0500 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:39945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8VVK-00068O-RY for emacs-orgmode@gnu.org; Thu, 21 Feb 2013 07:44:02 -0500 Received: by mail-we0-f177.google.com with SMTP id d7so7435843wer.36 for ; Thu, 21 Feb 2013 04:44:01 -0800 (PST) In-Reply-To: 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: Subhan Tindall , Org-Mode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subhan Tindall writes: > I have a question regarding a custom agenda report. I've found the > variable org-agenda-span to set the number of days shown. But, I > can't seem to some up with a way to make it start in the past. > IE I want to see all agenda items for today and the previous 6 days. > Also, can someone point me at a good tutorial for customized agendas > including all option variables & what they do? I can't seem to put my > fingers on one. > Thanks! > Subhan > '(org-agenda-custom-commands (quote (("w" "Weekly Logs" agenda "" > ((org-agenda-span 8)))))) > > > --=20 > Subhan Michael Tindall | Software Developer > | smt@rentrakmail.com > RENTRAK | www.rentrak.com | NASDAQ: RENT > Hi, this is what I have =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (defun my/org-last-week () =E2=94=82 (- (org-today) 7) =E2=94=82 ) =E2=94=82=20 =E2=94=82=20 =E2=94=82 (add-to-list 'org-agenda-custom-commands =E2=94=82 '("w" "Weekly Logs" =E2=94=82 ( =E2=94=82 (agenda nil =E2=94=82 ( =E2=94=82 (org-agenda-overriding-header =E2=94=82 "Review for last week") =E2=94=82 (org-agenda-span 8) =E2=94=82 ) =E2=94=82 ) =E2=94=82 ) =E2=94=82 ( =E2=94=82 (org-agenda-start-day 'my/org-last-week) =E2=94=82 (org-agenda-start-with-clockreport-mode t) =E2=94=82 (org-agenda-start-with-log-mode t) =E2=94=82 (org-agenda-archives-mode t) =E2=94=82 (org-agenda-show-log 'clockcheck) =E2=94=82 ) =E2=94=82 ) =E2=94=82 ) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Hope it helps. =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRJhR5AAoJEHXSPO10ORBqlHIH/0D1VOPwocQhF3pbP1UTBBXC Y5YoCI/u/6mWRcClPYXXkK9P7wV7JtIL705nlZJ3dNni57XF3vVp7pHYp4SXBcyJ In1qzBdlnO4uQHUiBl1EEPQLWlwYOKeN2ucOChBWMAlr9oHpjL0irO7v3/dKZ1s5 B/nia4IKnMRidpWtk8SH7Oz3oy1N3d4hK0OrGs+Ata4AWbh0xnUPjg2jxyxq6HWZ sxFedlEfaSBuE0grITF6BwFlXkXIovuCbFYeXv8Q5vG1isnPxoO4iFl8wk4ySwrV 5rDlhNT5EC4G7UToasZoP7r09VJdZAvZxYp7CbaNeIfedXvL2+HKkVYWOrKVvQU= =gj0f -----END PGP SIGNATURE----- --=-=-=--