Warm tip: This article is reproduced from serverfault.com, please click

emacs-在组织模式下将初始可见性设置为一定水平

(emacs - Set initial visiblity to a certain level in org-mode)

发布于 2019-06-11 03:46:35

类似于此问题,除了我理想上将此作为每个文档的设置或模式行。理想的情况是:

#+STARTUP: showlevels 3

或者,如果需要作为模式行:

# -*- org-showlevels: 3 -*-

并且等同于C-3 S-tab在加载文件时运行

org-mode手册的初始可见性设置中似乎未直接支持此功能:https : //orgmode.org/manual/Initial-visibility.html

Questioner
Elliott Slaughter
Viewed
0
Whil 2020-12-10 17:53:13

从今天开始,此新的启动选项在Emacs Org模式母版中可用。

实现方式与你的建议Elliott略有不同,因为启动关键字不能带有参数(据我所知)。但是,如果你使用的是组织模式主菜单,则以下内容现在可以使用:

#+ STARTUP:show3levels

(3可以更改为2,3,4,5中的任何一个)