emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Rainer Stengele <rainer.stengele@online.de>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: org-agenda-clockreport-mode does not include archived entries? How to?
Date: Mon, 20 Feb 2012 15:38:12 -0500	[thread overview]
Message-ID: <13835.1329770292@alphaville> (raw)
In-Reply-To: Message from Nick Dokos <nicholas.dokos@hp.com> of "Mon, 20 Feb 2012 15:03:08 EST." <12538.1329768188@alphaville>

Nick Dokos <nicholas.dokos@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

  reply	other threads:[~2012-02-20 20:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20  8:03 org-agenda-clockreport-mode does not include archived entries? How to? Rainer Stengele
2012-02-20  8:36 ` Carsten Dominik
2012-02-20  8:39   ` Rainer Stengele
2012-02-20 10:09     ` Carsten Dominik
2012-02-20 12:07       ` Bernt Hansen
2012-02-20 12:53       ` Rainer Stengele
2012-02-20 16:10         ` Rainer Stengele
2012-02-20 16:32           ` Nick Dokos
2012-02-20 16:52             ` Rainer Stengele
2012-02-20 20:03               ` Nick Dokos
2012-02-20 20:38                 ` Nick Dokos [this message]
2012-02-21  9:41                   ` Rainer Stengele
2012-02-21 15:19                     ` Nick Dokos

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=13835.1329770292@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rainer.stengele@online.de \
    /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).