Update 50_tangle_emacs_config.sh

This commit is contained in:
Anthony Rodriguez 2024-07-04 14:50:09 +02:00
parent 509d4a0c83
commit e893f0d6d4

View file

@ -1,9 +1,7 @@
#!/bin/sh
ORG_FILE="{{ joinPath .chezmoi.sourceDir "private_dot_emacs.d/config.org" }}"
TANGLED_FILE="$HOME/.emacs.d/init.el"
mkdir -p "$(dirname "$TANGLED_FILE")"
emacs --batch -l org \
--eval "(org-babel-tangle-file \"$ORG_FILE\" \"$TANGLED_FILE\" \"emacs-lisp\")"
emacs --batch -l org --eval "(org-babel-tangle-file \"$ORG_FILE\")"