如何使用Emacs + org-mode + visual-line-mode进行缩进?

时间:2009-11-20 17:17:33

标签: emacs org-mode

Emacs + org-mode + visual-line-mode + window resizing产生这种观点:

* 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

我更愿意这样:

* 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

关于如何配置emacs或org-mode来实现这一点的任何线索都非常感激:)

(关于ubuntu karmic的emacs23.1)

2 个答案:

答案 0 :(得分:30)

激活org-indent-mode。一种方法是添加一个钩子

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

但更简单的方法是将org-startup-indented定制为非零。

请注意,即使org-indent-mode为非零,标题仍然不享受自动填充处理。它只是一个条目的 body ,它将被填充并在其父标题的左列中左对齐。

答案 1 :(得分:10)

对于足够新版本的组织模式,M-x customize-variable org-indent-mode应该这样做。最近有fix org-indent-modevisual-line-mode进行了对帐。