在 org-mode 中将初始可见性设置为特定级别
Set initial visiblity to a certain level in org-mode
类似于this question,除了我希望它作为理想的每个文档设置或模式行。理想的情况是:
#+STARTUP: showlevels 3
或者如果需要作为模式行:
# -*- org-showlevels: 3 -*-
加载文件时相当于运行C-3 S-tab
在 org-mode 手册的初始可见性设置中似乎没有直接支持:https://orgmode.org/manual/Initial-visibility.html
您可以使用 org-content
命令复制 C-3 S-tab
的操作:
# -*- eval:(org-content 3) -*-
来自文档字符串:
Show all headlines in the buffer, like a table of contents. With
numerical argument N, show content up to level N.
从今天起,Emacs Org 模式大师中提供了新的启动选项。
实施与您的建议 Elliott 略有不同,因为启动关键字不能有参数(据我所知)。但是如果你使用 Org mode master,下面的方法现在可以工作了:
#+STARTUP: show3levels
(3可以改成2,3,4,5中的任意一个)
类似于this question,除了我希望它作为理想的每个文档设置或模式行。理想的情况是:
#+STARTUP: showlevels 3
或者如果需要作为模式行:
# -*- org-showlevels: 3 -*-
加载文件时相当于运行C-3 S-tab
在 org-mode 手册的初始可见性设置中似乎没有直接支持:https://orgmode.org/manual/Initial-visibility.html
您可以使用 org-content
命令复制 C-3 S-tab
的操作:
# -*- eval:(org-content 3) -*-
来自文档字符串:
Show all headlines in the buffer, like a table of contents. With numerical argument N, show content up to level N.
从今天起,Emacs Org 模式大师中提供了新的启动选项。
实施与您的建议 Elliott 略有不同,因为启动关键字不能有参数(据我所知)。但是如果你使用 Org mode master,下面的方法现在可以工作了:
#+STARTUP: show3levels
(3可以改成2,3,4,5中的任意一个)