Skip to content

Instantly share code, notes, and snippets.

Created December 1, 2022 12:05
What would you like to do?
Bash function to tangle Org Mode
function tangle {
path=$(realpath $1)
emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "'$path'")'
# consider putting it in .bash_profile along with the line below:
export -f tangle
# $ tangle
# $ tangle a/b/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment