How to keep indentation with Emacs + org-mode + visual-line-mode?

后端 未结 2 1000
情深已故
情深已故 2020-12-25 11:47

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
  *         


        
相关标签:
2条回答
  • 2020-12-25 12:28

    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.

    0 讨论(0)
  • 2020-12-25 12:42

    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.

    0 讨论(0)
提交回复
热议问题