Subhan Tindall <subhan.tind...@rentrakmail.com> 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
> | s...@rentrakmail.com
> 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

Attachment: pgpHsftn3PDMi.pgp
Description: PGP signature

Reply via email to