[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Memnon Anon
Subject: Re: [O] ELISP
Date: Sun, 23 Oct 2011 16:04:40 +0000 (UTC)

Karl Voit <address@hidden> writes:

> * Carsten Dominik <address@hidden> 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 ...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]