emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Loury <konubinix@gmail.com>
To: Subhan Tindall <subhan.tindall@rentrakmail.com>,
	Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: need: custom agenda for last 7 days
Date: Thu, 21 Feb 2013 13:35:04 +0100	[thread overview]
Message-ID: <87zjyxkfpj.fsf@konixwork.incubateur.ens-lyon.fr> (raw)
In-Reply-To: <CAKKEbDsFKBVLsrP5-MU6TGwDyw8Jrs3XT-wzyrbwf_6=y1+xBQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]

Subhan Tindall <subhan.tindall@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.
> Also, can someone point me at a good tutorial for customized agendas
> including all option variables & what they do? I can't seem to put my
> fingers on one.
> Thanks!
> Subhan
> '(org-agenda-custom-commands (quote (("w" "Weekly Logs" agenda ""
> ((org-agenda-span 8))))))
>
>
> -- 
> Subhan Michael Tindall | Software Developer
> | smt@rentrakmail.com
> RENTRAK | www.rentrak.com | NASDAQ: RENT
>

Hi, this is what I have

╭────
│ (defun my/org-last-week ()
│   (- (org-today) 7)
│   )
│ 
│ 
│ (add-to-list 'org-agenda-custom-commands
│ 			 '("w" "Weekly Logs"
│ 			   (
│ 				(agenda nil
│ 						(
│ 						 (org-agenda-overriding-header
│ 						  "Review for last week")
│ 						 (org-agenda-span 8)
│ 						 )
│ 						)
│ 				)
│ 			   (
│ 				(org-agenda-start-day 'my/org-last-week)
│ 				(org-agenda-start-with-clockreport-mode t)
│ 				(org-agenda-start-with-log-mode t)
│ 				(org-agenda-archives-mode t)
│ 				(org-agenda-show-log 'clockcheck)
│ 				)
│ 			   )
│ 			 )
╰────
Hope it helps.
-- 
Konubinix
GPG Key    : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

  parent reply	other threads:[~2013-02-21 12:44 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
2013-02-21 14:05   ` Jeremy \
2013-02-21 16:58   ` Subhan Tindall
2013-02-21 12:35 ` Samuel Loury [this message]
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=87zjyxkfpj.fsf@konixwork.incubateur.ens-lyon.fr \
    --to=konubinix@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=subhan.tindall@rentrakmail.com \
    /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).