Rainer Stengele <[email protected]> wrote:
> Having configured 'month in org-agenda-soan how can I start my agenda
> at the beginning of the month? I only find
> org-agenda-start-on-weekday and org-agenda-start-day, but no
> possibility to set the "1st of the current month". What I really want
> is a calendar range for "current month" like "1st of month until and
> including today".
>
Adding
...
(org-agenda-start-day (ndk/org-first-of-month))
(org-agenda-span 'month)
...
to your custom agenda command, with
--8<---------------cut here---------------start------------->8---
(defun ndk/org-first-of-month ()
(let ((d (calendar-current-date)))
(calendar-absolute-from-gregorian (list (car d) 1 (caddr d)))))
--8<---------------cut here---------------end--------------->8---
should do it.
Nick