Re: [O] need: custom agenda for last 7 days

2013-02-22 Thread Bastien
Hi Xiao-Yong, Xiao-Yong Jin writes: > I believe you need to pass a string to =org-agenda-start-day=. > > (org-agenda-start-day "-7") Indeed, sorry for the mistake. > For this variable, =org-agenda-start-day=, give a link to the document of > the function =org-read-date= would be great. I

Re: [O] need: custom agenda for last 7 days

2013-02-22 Thread Xiao-Yong Jin
I was just trying to search for this the other day. On Feb 22, 2013, at 5:19 PM, Bastien wrote: > Hi Subhan, > > Subhan Tindall writes: > >> '(org-agenda-custom-commands (quote (("w" "Weekly Logs" agenda "" >> ((org-agenda-span 8)) > > You can combine `org-agenda-span' and `org-agenda-st

Re: [O] need: custom agenda for last 7 days

2013-02-22 Thread Bastien
Hi Subhan, Subhan Tindall writes: > '(org-agenda-custom-commands (quote (("w" "Weekly Logs" agenda "" > ((org-agenda-span 8)) You can combine `org-agenda-span' and `org-agenda-start-day', which interprets negative values correctly: '(org-agenda-custom-commands (quote (("w" "Weekly Logs" a

Re: [O] need: custom agenda for last 7 days

2013-02-21 Thread Subhan Tindall
Actually I think the behavior of agendas is somewhat broken in this regard - a 6 day span shows 6 days, an 8 day span shows 8 days, a 7 day span shows a weekly agenda starting on Monday. Silently redefining the meaning of a variable like this depending on it's value is pretty horrible. But thanks

Re: [O] need: custom agenda for last 7 days

2013-02-21 Thread Samuel Loury
Nick Dokos writes: > Samuel Loury wrote: > >> ╭ >> │ (defun my/org-last-week () >> │ (- (org-today) 7) >> │ ) >> │ >> │ >> │ (add-to-list 'org-agenda-custom-commands >> │ '("w" "Weekly Logs" >> │ ( >> │(agenda nil >>

Re: [O] need: custom agenda for last 7 days

2013-02-21 Thread Nick Dokos
Samuel Loury wrote: > ╭ > │ (defun my/org-last-week () > │ (- (org-today) 7) > │ ) > │ > │ > │ (add-to-list 'org-agenda-custom-commands > │ '("w" "Weekly Logs" > │( > │ (agenda nil > │

Re: [O] need: custom agenda for last 7 days

2013-02-21 Thread Jeremy \
Subhan: here is a fonction you can use to generate your weekly report: #+BEGIN_SRC lisp (defun my/weekly-report nil "Generate the agenda list for last 8 days with report mode on" (org-agenda-list nil (- (org-today) 8) 8) ; 8 day agenda starting 8 days ago (s

Re: [O] need: custom agenda for last 7 days

2013-02-21 Thread LeJyBy
Subhan Tindall 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

Re: [O] need: custom agenda for last 7 days

2013-02-21 Thread Samuel Loury
Subhan Tindall 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.

[O] need: custom agenda for last 7 days

2013-02-20 Thread Subhan Tindall
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 g