[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] need: custom agenda for last 7 days
From: |
Samuel Loury |
Subject: |
Re: [O] need: custom agenda for last 7 days |
Date: |
Thu, 21 Feb 2013 13:35:04 +0100 |
User-agent: |
Notmuch/0.15 (http://notmuchmail.org) Emacs/24.3.50.2 (x86_64-unknown-linux-gnu) |
Subhan Tindall <address@hidden> 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))))))
>
>
> --
> Subhan Michael Tindall | Software Developer
> | address@hidden
> RENTRAK | www.rentrak.com | NASDAQ: RENT
>
Hi, this is what I have
╭────
│ (defun my/org-last-week ()
│ (- (org-today) 7)
│ )
│
│
│ (add-to-list 'org-agenda-custom-commands
│ '("w" "Weekly Logs"
│ (
│ (agenda nil
│ (
│ (org-agenda-overriding-header
│ "Review for last week")
│ (org-agenda-span 8)
│ )
│ )
│ )
│ (
│ (org-agenda-start-day 'my/org-last-week)
│ (org-agenda-start-with-clockreport-mode t)
│ (org-agenda-start-with-log-mode t)
│ (org-agenda-archives-mode t)
│ (org-agenda-show-log 'clockcheck)
│ )
│ )
│ )
╰────
Hope it helps.
--
Konubinix
GPG Key : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A
pgpw9jng1nKjZ.pgp
Description: PGP signature