2009-11-20 74 views
26

的Emacs +組織模式+視線模式+窗口大小調整產生這樣的看法:如何通過Emacs + org-mode + visual-line-mode保留縮進?

 
* 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的任何線索或組織模式,以實現這一目標將非常非常感謝:)

(Ubuntu的業力emacs23.1)

回答

10

對於組織模式的新版本不夠,M-x customize-variable org-indent-mode應該做的。最近有一個fix和解org-indent-modevisual-line-mode

+0

非常感謝。 事實上,構建來自其git源的組織模式提供了提供此功能的org-indent-mode! – 2009-11-21 20:05:06

+1

另請參閱http://orgmode.org/manual/Clean-view.html#Clean-view – 2012-01-19 13:44:00

29

激活org-indent-mode。一種方法是增加一個鉤子

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

但更簡單的方法是自定義org-startup-indented是非零。

請注意,即使org-indent-mode非零,標題仍然不享受自動填充處理。它只是一個條目的正文,該條目將被填充並縮進左對齊其父標題的左列。

+0

謝謝!需要適當的鉤子語法爲所有組織文件進行可視化行模式自動化。 – 2014-01-28 18:55:12