Samuel Loury <konubi...@gmail.com> wrote:

> ╭────
> │ (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)

I think that's wrong: there is no support afaik for this variable to have
a function value. Should that  be

                                (org-agenda-start-day (my/org-last-week))

perhaps?

Nick

> │                             (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

Reply via email to