繁体   English   中英

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

[英]How to keep indentation with Emacs + org-mode + visual-line-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)

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

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

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

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

对于一个足够新的org-mode版本, Mx customize-variable org-indent-mode应该这样做。 最近修复了visual-line-mode org-indent-mode协调的org-indent-mode visual-line-mode

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM