在 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, withheading
andplain-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/