From mboxrd@z Thu Jan 1 00:00:00 1970 From: Memnon Anon Subject: Re: ELISP Date: Sun, 23 Oct 2011 16:04:40 +0000 (UTC) Message-ID: <874nyzd7pw.fsf@mean.albasani.net> References: <2011-10-23T11-54-04@devnull.Karl-Voit.at> <922F071C-1B13-4713-853A-F568C2D5D8E0@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI0Xe-0005jU-KT for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 12:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RI0Xc-0002Kx-VF for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 12:04:54 -0400 Received: from lo.gmane.org ([80.91.229.12]:42070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI0Xc-0002Ks-KG for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 12:04:52 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RI0Xb-0005dY-3x for emacs-orgmode@gnu.org; Sun, 23 Oct 2011 18:04:51 +0200 Received: from e178238075.adsl.alicedsl.de ([85.178.238.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Oct 2011 18:04:51 +0200 Received: from gegendosenfleisch by e178238075.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Oct 2011 18:04:51 +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: emacs-orgmode@gnu.org Karl Voit writes: > * Carsten Dominik wrote: >> C-u 30 C-c a a > For now I used: > > ,----[ from my .emacs ] > | (defun vk-export-agenda() > | "Exports monthly Org-mode agenda to agenda.ics file" > | (interactive) > | (org-agenda-list) > | (org-agenda-month-view) > | (org-write-agenda "~/org-mode/agenda.ics") > | ) > `---- > I tried by myself but failed miserable. How can I add this > org-agenda-span to this function definition? ,----[ C-h k C-c a ] | a Call `org-agenda-list' to display the agenda for current day or | week. `---- ,----[ C-h f org-agenda-list ] | (org-agenda-list &optional INCLUDE-ALL START-DAY SPAN) | ... | With a numeric prefix argument in an interactive call, the agenda will | span INCLUDE-ALL days. Lisp programs should instead specify SPAN to change | the number of days. SPAN defaults to `org-agenda-span'. `---- So, try (org-agenda-list nil nil 30) (org-write-agenda "~/org-mode/agenda.ics") > And: is there an (E)LISP book/URL you can recommend? I do have > programming experience and I noticed that I should learn ELISP in > order to get most of my editor ... "An Introduction to Programming in Emacs Lisp" should come with your emacs. Good way to get started. And "The Emacs Lisp Reference Manual" is very useful, too. hth, my elips knowledge is *very* limited, though ... Memnon