aboutsummaryrefslogtreecommitdiff
path: root/batch-export
diff options
context:
space:
mode:
Diffstat (limited to 'batch-export')
-rwxr-xr-xbatch-export11
1 files changed, 11 insertions, 0 deletions
diff --git a/batch-export b/batch-export
new file mode 100755
index 0000000..8a617c9
--- /dev/null
+++ b/batch-export
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Export files with Org mode
+#
+emacs -q --batch --eval "
+ (progn
+ (require 'ox-html)
+ (setq org-html-htmlize-output-type 'css)
+ (dolist (file command-line-args-left)
+ (with-current-buffer (find-file-noselect file)
+ (org-html-export-to-html))))
+ " "$@"