emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: batch exporting


From: andrea
Subject: [Orgmode] Re: batch exporting
Date: Tue, 22 Dec 2009 10:20:11 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin)

Nick Dokos <address@hidden> writes:

> andrea <address@hidden> wrote:
>
>
> Then prepare a skeleton .emacs just for export and load that:
>
>      emacs --batch --load ~/.skeleton-emacs-for-export ...
>

Eh eh solved, I was just using the builtin emacs version on snow leopard
(22.1), which for some reasons don't work at all..

This is enough, now I'll have to play with getopt a little bit
--8<---------------cut here---------------start------------->8---
FILE=$1
ORG="$HOME/.emacs.d/org-mode/lisp/"
EMACS="/Applications/Emacs.app/Contents/MacOS/Emacs"

if ! test -f $FILE
then
    help
else
    echo "converting file $FILE"
    $EMACS   --batch \
        --eval "(add-to-list 'load-path \"$ORG\")" \
        --eval "(require 'org)" \
        --visit=$FILE --funcall org-export-as-latex-batch
fi
--8<---------------cut here---------------end--------------->8---





reply via email to

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