On this example, cursor is at beginning of if
when I press tab
2 space indent is added beginning of if
block, which is aligned.
** TODO help | ** TODO help
#+begin_src python | #+begin_src python
if True | if True # 2 space added to beginning
print(True) | print(True) #
if True: | if True: #
print("World") | print("World") #
#+end_src | #+end_src
Would it be possible to apply (setq org-adapt-indentation nil)
into #+begin_src...#+end_src
region as well where pressing TAB
will no do initial tab alignment.
Also would it be possible to set the indent as four spaces instead of two?
Wanted behaviour:
** TODO help
#+begin_src python
if True # Indent does not added
print(True) # Four spcace added at the beginning
if True:
print("World")
#+end_src
init.el:
(setq org-adapt-indentation nil)
(require 'org-tempo)
(defun my-tab-related-stuff ()
(setq tab-width 4))
Related: