0

Is it possible to disable the indentation of new babel source blocks?

I played with electric-indent-local-mode and org-src-preserve-indentation without success.

Current output:

* aa
** bb
   #+begin_src shell

   #+end_src

Expected output:

* aa
** bb
#+begin_src shell

#+end_src
2
  • 1
    Does this happen only with source blocks or with regular text as well? If the latter, it seems the case of disabling org-indent-mode (M-x org-indent-mode).
    – nohans
    Jul 28 at 20:26
  • 1
    Did you try (setq org-adapt-indentation nil)?
    – aadcg
    Jul 29 at 8:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.