emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Jeremy \"LeJyBy\" Barbay" <jbarbay@dcc.uchile.cl>
To: emacs-orgmode@gnu.org
Subject: Re: need: custom agenda for last 7 days
Date: Thu, 21 Feb 2013 11:39:10 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130221T120910-744@post.gmane.org> (raw)
In-Reply-To: CAKKEbDsFKBVLsrP5-MU6TGwDyw8Jrs3XT-wzyrbwf_6=y1+xBQ@mail.gmail.com

Subhan Tindall <subhan.tindall <at> rentrakmail.com> writes:

> I have a question regarding a custom agenda report.  I've found the
> variable org-agenda-span to set the number of days shown.  But, I
> can't seem to some up with a way to make it start in the past.
> IE I want to see all agenda items for today and the previous 6 days.

Hi Subhan.

- Would the following serve you?
  ((org-agenda-list nil (- (org-today) 7) 6) ; 6 day agenda starting 6 days ago

I tried (and failed) to find how to define a custom command in the agenda to
this purpose, but the last function fulfilled my wish. An unexpected twist
(which you might like) is that (org-agenda-list nil (- (org-today) 7) 7) gives a
7 day agenda starting Monday of last week, rather than 7 days ago.

I hope it helps!

Many thanks to all people involved in org-mode for their good work and patience
with the "rowdy" users!

  reply	other threads:[~2013-02-21 13:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-20 19:00 need: custom agenda for last 7 days Subhan Tindall
2013-02-21 11:39 ` Jeremy "LeJyBy" Barbay [this message]
2013-02-21 14:05   ` Jeremy \
2013-02-21 16:58   ` Subhan Tindall
2013-02-21 12:35 ` Samuel Loury
2013-02-21 15:04   ` Nick Dokos
2013-02-21 17:19     ` Samuel Loury
2013-02-22  8:19 ` Bastien
2013-02-22  9:15   ` Xiao-Yong Jin
2013-02-22 12:43     ` Bastien

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=loom.20130221T120910-744@post.gmane.org \
    --to=jbarbay@dcc.uchile.cl \
    --cc=emacs-orgmode@gnu.org \
    /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).