From: "Jeremy \\" <jbarbay@dcc.uchile.cl>
To: emacs-orgmode@gnu.org
Subject: Re: need: custom agenda for last 7 days
Date: Thu, 21 Feb 2013 14:05:47 +0000 (UTC) [thread overview]
Message-ID: <loom.20130221T145916-335@post.gmane.org> (raw)
In-Reply-To: loom.20130221T120910-744@post.gmane.org
Subhan: here is a fonction you can use to generate your weekly report:
#+BEGIN_SRC lisp
(defun my/weekly-report nil
"Generate the agenda list for last 8 days with report mode on"
(org-agenda-list nil (- (org-today) 8) 8) ; 8 day agenda starting 8 days ago
(setq org-agenda-clockreport-mode nil)
(org-agenda-clockreport-mode)
)
#+END_SRC
Samuel: I love your solution (much more elegant than mine!), but even with
emacs -q I get the error
#+BEGIN_SRC
org-agenda-list: Wrong type argument: number-or-marker-p, my/org-last-week
#+END_SRC
I am using GNU Emacs 24.3.50.1 and Org-mode version 7.9.3d.
next prev parent reply other threads:[~2013-02-21 14:30 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 \ [this message]
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.20130221T145916-335@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).