emacs-orgmode
[Top][All Lists]
Advanced

[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 18:19:43 +0100
User-agent: Notmuch/0.15 (http://notmuchmail.org) Emacs/24.3.50.2 (x86_64-unknown-linux-gnu)

Nick Dokos <address@hidden> writes:

> Samuel Loury <address@hidden> 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.

Hum. You're right. I forgot I also patched the org-agenda.el code for
this to work.

> Should that  be
>
>                               (org-agenda-start-day (my/org-last-week))

That works well indeed. And does not need any patch.
Thanks for the correction.

-- 
Konubinix
GPG Key    : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A

Attachment: pgp5YaQvfloLJ.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]