aboutsummaryrefslogtreecommitdiff
path: root/batch-tangle
diff options
context:
space:
mode:
Diffstat (limited to 'batch-tangle')
-rwxr-xr-xbatch-tangle10
1 files changed, 10 insertions, 0 deletions
diff --git a/batch-tangle b/batch-tangle
new file mode 100755
index 0000000..93129da
--- /dev/null
+++ b/batch-tangle
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Tangle files with Org mode
+#
+emacs -Q --batch --eval "
+ (progn
+ (require 'ob-tangle)
+ (dolist (file command-line-args-left)
+ (with-current-buffer (find-file-noselect file)
+ (org-babel-tangle))))
+ " "$@"