2.2.2 Initial visibility

Emacs 首次打开 Org 文件时,全局状态默认为 showeverything ,即文件所有内容均可见6。可通过变量 org-startup-folded 进行配置,也可在缓冲区任意位置添加以下行实现按文件单独设置:

#+STARTUP: overview
#+STARTUP: content
#+STARTUP: showall
#+STARTUP: show2levels
#+STARTUP: show3levels
#+STARTUP: show4levels
#+STARTUP: show5levels
#+STARTUP: showeverything

此外,带有 ‘VISIBILITY’ 属性的条目(详见 Properties and Columns)会自动适配对应可见性,该属性允许的值为 ‘folded=、=children=、=content’ 和 ‘all’ 。

C-u C-u TAB (org-cycle-set-startup-visibility)

恢复为缓冲区的启动可见性状态,即由启动选项和各条目 ‘VISIBILITY’ 属性指定的状态。


Footnotes

(6)

org-agenda-inhibit-startup 为非 nil 时,Org 为日程首次打开文件时不会遵循默认可见性状态,详见 Speeding Up Your Agendas