From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Markert Subject: Re: Agenda file for the "following X days" Date: Tue, 07 Jun 2011 14:00:30 +0200 Message-ID: <8762ohkg0x.wl%markert.michael@googlemail.com> References: <56D15172152B4EB5B24F400A6616BA3A@go.wustl.edu> <20110607085906.7454e0bb@vknecht-intel.unibw-hamburg.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Jun__7_14:00:30_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTuxb-0008Im-9C for emacs-orgmode@gnu.org; Tue, 07 Jun 2011 08:00:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTuxW-0005lI-M3 for emacs-orgmode@gnu.org; Tue, 07 Jun 2011 08:00:38 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:40210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTuxW-0005ki-34 for emacs-orgmode@gnu.org; Tue, 07 Jun 2011 08:00:34 -0400 Received: by fxm18 with SMTP id 18so3801195fxm.0 for ; Tue, 07 Jun 2011 05:00:32 -0700 (PDT) In-Reply-To: <20110607085906.7454e0bb@vknecht-intel.unibw-hamburg.de> 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: Detlef Steuer Cc: emacs-orgmode@gnu.org --pgp-sign-Multipart_Tue_Jun__7_14:00:30_2011-1 Content-Type: text/plain; charset=US-ASCII 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 --pgp-sign-Multipart_Tue_Jun__7_14:00:30_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJN7hLeAAoJEHHMVUK0UjKVD3UP/iTOQBBWOkkrXAaqkLNdu61s LpZdxMd5JAOjoqFmlJ/lYjTzE9sUqPXbSxME14dQk6FFRewb3+7pabfJunk3tkd4 RhNxDHfQCk3humYMI2FnFV2j3De/DRHJ8AdgCCYtXJh2oMYhmw8P1O8dHlbXD6eh zLh2YT79mVB1J5jqT4dW/UxBL0pDXxSIoaL6rw8arXRY/BdpqcJQR5SBUvilzpx7 RKPXI3t2ECd+fNMFzSMLSMxgLrOqSAQM/17H1WTHfAOLOEWy5gyVLmGCvRySAzMj S23ZQfk4Z67Znw/j8BrgB9QPPFmzy9vwq6lv6EKFTyfuiYISFLtRdL0MraM+box/ nozvjcOjbyCDmU8giPEOfzuGSOSMox0bHonzfYsIGRZEDjEZP8kvzTDaoFmR+2Nw bMthpQ5y0tGC0JxA/3d+A6b9YnWmkZ9oi6QfrUunfLzFeykwBVmRuXLjvA3TBnSX 34mAsRb7uodtNTPPrizxg1l7fxKsP/RcqXcm/okbRP/o6Jz9qSiYewsTp/voYyU/ SMWW+DhgkqwzbzqDGy0uuKu1sNIs5QjDko5jDh8YtgfCuOdPqAJbM2JUNUPve/55 OMEP6IDLI8KVa99z9e5wjU7RqnIl+hkDjxA1JJpGXJb0buSCGTMPpfecZ+NHVm7X Z922C1GdXiijC16U21p3 =pn8q -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Jun__7_14:00:30_2011-1--