andrea <andrea.crott...@gmail.com> wrote: > > Given that I often would like to export to some formats I would like to > create the final script that handles everything. > > If easy enough it can also be useful for non org users that still would > like to get the output formatted... > > So my attempt is here > --8<---------------cut here---------------start------------->8--- > #!/bin/bash > > # Pass as input the file you want to convert to html > > FILE=$1 > > if ! test -f $FILE > then > echo "file not found" > else > echo "converting file $FILE" > # TODO putting a minimal init file > emacs --batch \ > --eval "(add-to-list 'load-path \"$HOME/.emacs.d/org-mode/lisp/\")" \ > --load=$HOME/.emacs.d/org-mode/lisp/org.el \ > --visit=MyFile --funcall org-export-as-html-batch > fi > > help() { > echo "pass a file to export" > } > > --8<---------------cut here---------------end--------------->8--- > > But it gives this error > *Wrong type argument: commandp, org-export-as-html-batch* > > Then I would like to add some flags to export in different formats and > to set destination and source. > > And by the way, the script given as example in the function help doesn't > work... > >
See the thread at http://thread.gmane.org/gmane.emacs.orgmode/17059 HTH, Nick _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode