emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-agenda-clockreport-mode does not include archived entries? H


From: Nick Dokos
Subject: Re: [O] org-agenda-clockreport-mode does not include archived entries? How to?
Date: Mon, 20 Feb 2012 15:38:12 -0500

Nick Dokos <address@hidden> 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



reply via email to

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