6

In org-mode, when you press M-S-right or M-S-left to demote or promote a tree with all it's subtrees, the content text is also indented.

So suppose I want to deomote the following structure by two levels, in order to replace it as a part of another tree structure. Then from this:

* A
text
** A.I
text
*** A.I.1
text

...I get this:

*** A
  text
**** A.I
  text
***** A.I.1
  text

How can I disable this indentation? Thanks.

7

Set the variable org-adapt-indentation to nil. The default value is t, which means:

When this variable is set, Org assumes that you write outlines by indenting text in each node to align with the headline (after the stars). The following issues are influenced by this variable:

  • The indentation is increased by one space in a demotion command, and decreased by one in a promotion command. However, in the latter case, if shifting some line in the entry body would alter document structure (e.g., insert a new headline), indentation is not changed at all.

You can change the value via M-x customize-variable org-adapt-indentation.

2

Set variable org-adapt-indentation to nil.

See also info section (info "(org) Clean View").

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.