■
仕事でorg-modeで書いたテキストをhtmlに変換する必要があったんだけど、
結構な量があったんで自動化したいなーと思って調べてたらやっぱあった
lisp/textmodes/org.el (emacs-22.2の場合)
(defun org-export-as-html-batch () "Call `org-export-as-html', may be used in batch processing as emacs --batch --load=$HOME/lib/emacs/org.el --eval \"(setq org-export-headline-levels 2)\" --visit=MyFile --funcall org-export-as-html-batch" (org-export-as-html org-export-headline-levels 'hidden))
使い方 (※1行で)
% emacs --batch --load=/usr/share/emacs/22.2/lisp/textmodes/org.elc --eval \"(setq org-export-headline-levels 2)\" --visit=hoge.org --funcall org-export-as-html-batch
スクリプトに上記を仕込めば色々自動化出来ます。