flocon/run_onchange_50_tangle_emacs_config.sh.tmpl

7 lines
197 B
Bash

#!/bin/sh
ORG_FILE="{{ joinPath .chezmoi.sourceDir "private_dot_emacs.d/config.org" }}"
mkdir -p "$(dirname "$TANGLED_FILE")"
emacs --batch -l org --eval "(org-babel-tangle-file \"$ORG_FILE\")"