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,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: org-agenda-clockreport-mode does not include archived entries? How to?
Date: Mon, 20 Feb 2012 15:03:08 -0500	[thread overview]
Message-ID: <12538.1329768188@alphaville> (raw)
In-Reply-To: Message from Rainer Stengele <rainer.stengele@online.de> of "Mon, 20 Feb 2012 17:52:22 +0100." <4F427A46.9010905@online.de>

Rainer Stengele <rainer.stengele@online.de> 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

  reply	other threads:[~2012-02-20 20:03 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 [this message]
2012-02-20 20:38                 ` Nick Dokos
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=12538.1329768188@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=carsten.dominik@gmail.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).