tags:

views:

480

answers:

3

Hello,

emacs + org-mode + visual-line-mode + window resizing produce this kind of view :

* My list
  * Some thing this is longer
back to line which is really
anoying
  * Other thing which is
truncated
    * Sub items with blah
to line

I would rather prefer this :

* My list
  * Some thing this is longer
    back to line which is 
    really anoying
  * Other thing which is
    truncated
    * Sub items with blah
      to line

Any clue about how to configure emacs or org-mode to achieve that would be really really appreciated :)

Thank you!

(emacs23.1 on ubuntu karmic)

+3  A: 

For a new enough version of org-mode, M-x customize-variable org-indent-mode should do. There's a recent fix reconciliating org-indent-mode with visual-line-mode.

huaiyuan
Thank you very much. Indeed building org-mode from its git sources provides org-indent-mode which provide this feature!
Laurent B
+5  A: 

Activate org-indent-mode. One way is to add a hook

(add-hook 'org-mode-hook
          (lambda ()
            (org-indent-mode t))
          t)

but the easier way is to customize org-startup-indented to be non-nil.

Note that even when org-indent-mode is non-nil, headlines still don't enjoy auto-fill treatment. It's only the body of an entry that will be both filled and indented left-justified against its parent heading's left column.

seh
A: 

I'm new with emacs in general. I can't seem to find out how to customize this variable. I've hit M-x customize variable RET org-startup-indented but it says no match. I can't figure out how to turn indented mode on for all my org files. Please help!