Variable: org-src-content-indentation

org-src-content-indentation is a customizable variable defined in org-src.el.gz.

Value

2

Documentation

Indentation for the content of a source code block.

This should be the number of spaces added to the indentation of the #+begin line in order to compute the indentation of the block content after editing it with M-x org-edit-src-code (org-edit-src-code).

This customization also affects how the source code and example blocks are printed - when interpreting Org AST (during export), during detangling, and indentation.

It has no effect if org-src-preserve-indentation is non-nil.

Aliases

org-edit-src-content-indentation (obsolete since Org 9.8)

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defcustom org-src-content-indentation 2
  "Indentation for the content of a source code block.

This should be the number of spaces added to the indentation of the #+begin
line in order to compute the indentation of the block content after
editing it with `\\[org-edit-src-code]'.

This customization also affects how the source code and example blocks
are printed - when interpreting Org AST (during export), during
detangling, and indentation.

It has no effect if `org-src-preserve-indentation' is non-nil."
  :group 'org-edit-structure
  :type 'integer
  :safe #'wholenump)