5

org module之org-num

 2 years ago
source link: https://www.lujun9972.win/blog/2020/02/11/org-module%E4%B9%8Borg-num/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

org module之org-num

这个module提供了一个 org-num-mode 为Org的标题进行自动编号(只是通过Overylay显示编号,实际编号并没有写入buffer中).

进入该 mode 会对一级标题编号为 x,二级标题为 x.y, 三级标题为 x.y.z 以此类推。 标题编号的最深层次由 org-num-max-level 决定,默认为 nil 表示限制。

此外 org-num-mode 还提供了很多变量来控制要对哪些标题跳过编号:

org-num-skip-tags跳过指定标签的标题 org-num-skip-commented跳过关键字为 COMMENT 的标题 org-num-skip-unnumbered跳过带有属性 UNNUMBERED 的标题 org-num-skip-fottnotes

如果对编号的显示有要求,还可以通过 org-num-faceorg-num-format-function 来设置编号的显示方式。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK