From: Nick Dokos <nicholas.dokos@hp.com>
To: Samuel Loury <konubinix@gmail.com>
Cc: Org-Mode <emacs-orgmode@gnu.org>,
Subhan Tindall <subhan.tindall@rentrakmail.com>
Subject: Re: need: custom agenda for last 7 days
Date: Thu, 21 Feb 2013 10:04:15 -0500 [thread overview]
Message-ID: <25887.1361459055@alphaville> (raw)
In-Reply-To: Message from Samuel Loury <konubinix@gmail.com> of "Thu\, 21 Feb 2013 13\:35\:04 +0100." <87zjyxkfpj.fsf@konixwork.incubateur.ens-lyon.fr>
Samuel Loury <konubinix@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
next prev parent reply other threads:[~2013-02-21 15:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-20 19:00 need: custom agenda for last 7 days Subhan Tindall
2013-02-21 11:39 ` Jeremy "LeJyBy" Barbay
2013-02-21 14:05 ` Jeremy \
2013-02-21 16:58 ` Subhan Tindall
2013-02-21 12:35 ` Samuel Loury
2013-02-21 15:04 ` Nick Dokos [this message]
2013-02-21 17:19 ` Samuel Loury
2013-02-22 8:19 ` Bastien
2013-02-22 9:15 ` Xiao-Yong Jin
2013-02-22 12:43 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25887.1361459055@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=konubinix@gmail.com \
--cc=subhan.tindall@rentrakmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).