Am 20.02.2012 21:38, schrieb Nick Dokos:
> Nick Dokos <nicholas.do...@hp.com> wrote:
> 
>> Adding
>>
>>       ...
>>       (org-agenda-start-day (ndk/org-first-of-month))
>>       (org-agenda-span 'month)
>>       ...
>>
>> to your custom agenda command, with
>>
>> (defun ndk/org-first-of-month ()
>>   (let ((d (calendar-current-date)))
>>     (calendar-absolute-from-gregorian (list (car d) 1 (caddr d)))))
>>
>> should do it.
>>
> 
> Same thing but somewhat more readable:
> 
> --8<---------------cut here---------------start------------->8---
> (defun ndk/org-first-of-month ()
>   (let* ((d (calendar-current-date))
>        (m (calendar-extract-month d))
>        (y (calendar-extract-year d)))
>     (calendar-absolute-from-gregorian (list m 1 y))))
> --8<---------------cut here---------------end--------------->8---
> 
> Nick
> 
> 
Hi Nick,

thanks for helping! I now see the current whole month.
Is there a variable which includes the current starting date of the agenda 
instead of the "calendar-current-date"?
Using that I could start my month-overview for the month I see in my agenda.


Configuring "(org-agenda-archives-mode 'trees)" also show the archived trees.
What I cannot achieve is starting the log with clockcheck mode.
"(org-agenda-show-log 'clockcheck)" does not work.

Any ideas?

- Rainer

My current config is here:

        ..
        ("0m" "agenda + no todos - whole month - log-mode - ARCHIVE included - 
clock report" agenda ""
         (
          (org-agenda-sorting-strategy '(time-up priority-down))
          (org-agenda-span 'month)
          (org-agenda-start-with-log-mode t)
          (org-agenda-archives-mode 'trees)
          (org-agenda-start-day (ndk/org-first-of-month))
          (org-agenda-start-with-clockreport-mode t)
          (org-agenda-show-log 'clockcheck)
          ))
        ..

Reply via email to