mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-17 10:51:44 +02:00
23 lines
403 B
Bash
23 lines
403 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Tangle org files
|
||
|
|
||
|
emacsclient -a "" \
|
||
|
--socket-name=org_to_code \
|
||
|
--eval "(require 'org)"
|
||
|
|
||
|
for INPUT in $@ ; do
|
||
|
echo $INPUT
|
||
|
emacsclient \
|
||
|
--no-wait \
|
||
|
--socket-name=org_to_code \
|
||
|
--eval "(find-file \"$INPUT\")" \
|
||
|
--eval "(org-html-export-to-html)"
|
||
|
done
|
||
|
|
||
|
emacsclient \
|
||
|
--no-wait \
|
||
|
--socket-name=org_to_code \
|
||
|
--eval '(kill-emacs)'
|
||
|
|