New answers tagged tangle
1
You can use the variable org-src-preserve-indentation. If you set it to t before tangling like this:
#+begin_src emacs-lisp
(setq org-src-preserve-indentation t)
#+end_src
then the tangle will work as you expect.
The variable is defined with a defcustom so it is meant to be customized as you wish. You can either set it in your init file as above or ...
Top 50 recent answers are included
Related Tags
tangle × 36org-mode × 28
org-babel × 19
literate-programming × 9
noweb × 4
python × 2
babel × 2
org-export × 1
buffers × 1
indentation × 1
yasnippet × 1
character-encoding × 1
unicode × 1
byte-compilation × 1
config × 1
async × 1
eval × 1
ruby × 1
redisplay × 1