![](/img/trans.png)
[英]Can emacs longlines-mode or visual-line-mode be made to respect indentation and lists?
[英]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.