Vikas Rawal <vikasli...@agrarianresearch.org> writes:
> I would like to export an org file to html using a batch command. This
> is the command I tried.
>
> emacs --batch --load=$HOME/lisp/org-7.01/lisp/org.el --eval "(setq
> org-export-headline-levels 1)" --visit=$HOME/file.org --funcall 
> org-export-as-html-batch

That won't work.  At least you will need to load org-install.el, which
conatains all the autoload stuff that org-mode needs.  The export will
likely require some more customization of org-mode variables, so you'll
probably want to load a startup file that includes those customizations
and then a (require 'org-install).

> But I get an error which says: 
>
> Symbol's function definition is void: org-in-block-p
>
> Could anyone explain what this could mean?

It means the function isn't already defined and emacs doesn't know any
way to find that definition.  Which is exactly what you prevented by not
loading org-install.


HTH,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


Reply via email to