Turn on visual-line-mode
.
According to info
entry
Org Indent mode also sets wrap-prefix
correctly for indenting and wrapping long lines of headlines or text. This minor mode also handles Visual Line mode
and directly applied settings through word-wrap
.
The Org Ind
in your mode-line
is the give away ... Try turning org-indent-mode
OFF.
org-indent-mode
is an autoloaded interactive Lisp function in
org-indent.el
.
(org-indent-mode &optional ARG)
When active, indent text according to outline structure.
Internally this works by adding line-prefix
and wrap-prefix
properties, after each buffer modification, on the modified zone.
The process is synchronous. Though, initial indentation of buffer, which can take a few seconds on large buffers, is done during idle time.
This is a minor mode. If called interactively, toggle the Org-Indent mode
mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG
is toggle
. Enable the mode if ARG
is nil, omitted, or is a positive number. Disable the mode if ARG
is a negative number.
To check whether the minor mode is enabled in the current buffer, evaluate org-indent-mode
.
The mode`s hook is called both when the mode is enabled and when it is disabled.
From
(info "(org) Org Indent Mode")
or
16.4.1 Org Indent Mode | Emacs Docs
17.4.1 Org Indent Mode
To display the buffer in the indented view, activate Org Indent minor mode, using ``M-x org-indent-mode
. Text lines that are not headlines are prefixed with virtual spaces to vertically align with the headline text(1).
(1) Org Indent mode also sets wrap-prefix
correctly for indenting and wrapping long lines of headlines or text. This minor mode also handles Visual Line mode and directly applied settings through word-wrap
.
To make more horizontal space, the headlines are shifted by two characters. Configure org-indent-indentation-per-level
variable for a different number.
By default, Org Indent mode turns off org-adapt-indentation
and does hide leading stars by locally setting org-hide-leading-stars
to t
: only one star on each headline is visible, the rest are masked with the same font color as the background. If you want to customize this default behavior, see org-indent-mode-turns-on-hiding-stars
and org-indent-mode-turns-off-org-adapt-indentation
.
To globally turn on Org Indent mode for all files, customize the variable org-startup-indented
. To control it for individual files, use STARTUP
keyword as follows:
#+`STARTUP`: indent
#+`STARTUP`: noindent