tangling with org

tangle is a system for creating source files from org babel (literate programming)'s src blocks

table of contents

shortcuts

shortcutwhat it does
C-c C-c(in a src block) execute it
C-c 'open src block in a new buffer
C-c C-v ttangle
C-c C-v d"demarcate" (split) a block in two
M-x o-j RET RETjump from tangled block back to source org
M-x o-det RET RETdetangle tangled block

tangling

src blocks with a :tangle filename will get tangled

detangling

maybe untangling too?

comments

detangle requires comments be put into the source file to work. stick :comments link to your #+begin_src line to enable these. to enable them for all tangle blocks, use #+PROPERTY:

#+PROPERTY: header-args :tangle yes :comments link