emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: org batch job using emacsclient?


From: Magnus Henoch
Subject: [Orgmode] Re: org batch job using emacsclient?
Date: Mon, 16 Nov 2009 14:07:04 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Stefan Vollmar <address@hidden> writes:

> cmd = emacsclient + " --eval " \
>   + " \"(add-to-list 'load-path \\\"" + ORGLIB + "\\\")\"" \
>   + " \"(require 'org)\"" \
>   + " \"(require 'org-exp)\"" \
>   + " \"(setq org-export-headline-levels 2)\"" \
>   + " \"(load-file \\\"" + orgfile + "\\\")\"" \
>   + " \"(org-export-as-html)\""

emacsclient --eval expects only a single form.  Enclose all that in
(progn ...) and it should work better.

Magnus





reply via email to

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