emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Memnon Anon <gegendosenfleisch@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: Re: ELISP
Date: Sun, 23 Oct 2011 16:04:40 +0000 (UTC)	[thread overview]
Message-ID: <874nyzd7pw.fsf@mean.albasani.net> (raw)
In-Reply-To: j81373$fha$1@dough.gmane.org

Karl Voit <devnull@Karl-Voit.at> writes:

> * Carsten Dominik <carsten.dominik@gmail.com> 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

      reply	other threads:[~2011-10-23 16:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23 10:06 Agenda views w/m: inconsistency, bug Karl Voit
2011-10-23 10:14 ` suvayu ali
2011-10-23 10:17 ` Carsten Dominik
2011-10-23 11:14   ` Karl Voit
2011-10-23 13:01   ` ELISP (was: Agenda views w/m: inconsistency, bug) Karl Voit
2011-10-23 16:04     ` Memnon Anon [this message]

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=874nyzd7pw.fsf@mean.albasani.net \
    --to=gegendosenfleisch@googlemail.com \
    --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).