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

标签 emacs org-mode line-breaks heading

在 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/

相关文章:

emacs - 为什么在 emacs 中调用 byte-recompile-directory 函数时需要先输入 c-u 0?

emacs - 如何从光盘中删除未使用的 org-mode 附件文件

ios - 打印 UITextView(使用蓝牙打印机)不会保留换行符

java - 在读取和写入文件时避免丢失换行符 (\n)

emacs - 如何在与latexmk兼容的elisp中测试当前文件是否已更改

python - 如何在 Mac OS X 上修复 Aquamacs 中的 pdb?

emacs - 强调标记(粗体、斜体、下划线)的组织模式键绑定(bind)

haskell - 当 Emacs 23 Haskell 编译 (C-c C-l) 进入无休止的过程时该怎么办?

shell - emacs ansi-term 背景色

javascript - 括号会阻止分号插入吗?