gpt4 book ai didi

emacs orgmode 不在标题之间插入行?

转载 作者:行者123 更新时间:2023-12-04 07:36:54 25 4
gpt4 key购买 nike

在 emacs 组织模式中,当我创建一个新的子标题(org-insert-subheading)时,有时它会添加一个空行,有时它不会基于上面文本中的某些模式。

我可以强制 emacs 从不插入换行符吗?

IE,

* Heading 1
** Heading 2 #no line breaks.

最佳答案

我认为这是由变量 org-blank-before-new-entry 控制的。根据组织文档:

Should org-insert-heading leave a blank line before new heading/item? The value is an alist, with heading and plain-list-item as CAR, and a boolean flag as CDR. The cdr may also be the symbol `auto', in which case Org will look at the surrounding headings/items and try to make an intelligent decision whether to insert a blank line or not.

For plain lists, if org-list-empty-line-terminates-plain-lists is set, the setting here is ignored and no empty line is inserted to avoid breaking the list structure.



默认值是 '((heading . auto) (plain-list-item . auto)) ,所以它通常会在标题前插入一个换行符( auto 中的 heading 部分)。自定义变量时可以指定 Never,不会插入换行符。

关于emacs orgmode 不在标题之间插入行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28351465/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com