From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johnny Subject: Re: Agenda file for the "following X days" Date: Tue, 07 Jun 2011 19:00:06 +0100 Message-ID: <87fwnlplnd.fsf@gmx.co.uk> References: <56D15172152B4EB5B24F400A6616BA3A@go.wustl.edu> <20110607085906.7454e0bb@vknecht-intel.unibw-hamburg.de> <8762ohkg0x.wl%markert.michael@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QU0bT-0006uH-SN for emacs-orgmode@gnu.org; Tue, 07 Jun 2011 14:02:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QU0bR-00006m-Dd for emacs-orgmode@gnu.org; Tue, 07 Jun 2011 14:02:11 -0400 Received: from mailout-eu.gmx.com ([213.165.64.42]:53495) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QU0bQ-00006h-Qf for emacs-orgmode@gnu.org; Tue, 07 Jun 2011 14:02:09 -0400 In-Reply-To: <8762ohkg0x.wl%markert.michael@googlemail.com> (Michael Markert's message of "Tue, 07 Jun 2011 14:00:30 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Markert Cc: Detlef Steuer , emacs-orgmode@gnu.org Michael Markert writes: > On 7 Jun 2011, Detlef Steuer wrote: > >> On Mon, 6 Jun 2011 23:10:12 -0500 >> Ugur Ozdemir wrote: >> >>> Hi, >>> >>> As a novice I was wondering if there is an easy way of creating an >>> agenda file for a certain number of days starting from today. I know >>> I can do some custom agenda commands if I do some study but I guess I >>> am trying to free ride here. >>> >> >> And you get it, of course! >> >> (setq org-agenda-ndays 35) >> >> Where 35 is my number of days I like to look ahead. > > Building on this, you can define a function like that: > > (defun my-org-agenda () > (interactive) > (let ((org-agenda-ndays 35)) > (org-agenda))) > > Michael Maybe you can just use the prefix key for your needs? C-u 5 C-c a a will create a 5 day agenda. It is left as an excercise for the reader to create an 8 day agenda (or a 5-year plan, or any other use). :) Or maybe you were looking for something else? -- Johnny