当我使用 Emacs 编辑 BibTeX 文件时,按 Tab 键会将我带到行的中间,即使我正处于条目的开头。这非常烦人。有线索知道为什么会发生这种情况吗?
答案1
我假设您使用 BibTeX 模式。
要查找命令绑定的功能,您可以在其前面加上C-h k
.C-h k TAB
表示:
TAB (translated from <tab>) runs the command bibtex-find-text, which
is an interactive compiled Lisp function.
It is bound to TAB, <menu-bar> <BibTeX-Edit> <Moving inside an Entry>
<End of Field>.
(bibtex-find-text &optional BEGIN NOERROR HELP COMMA)
Move point to end of text of current BibTeX field or entry head.
With optional prefix BEGIN non-nil, move point to its beginning.
Unless NOERROR is non-nil, an error is signaled if point is not
on a BibTeX field. If optional arg HELP is non-nil print help message.
When called interactively, the value of HELP is `bibtex-help-message'.
Optional arg COMMA is as in `bibtex-enclosing-field'. It is t for
interactive calls.
如您所见,它将点移动到当前字段的末尾,但您可以通过不同的调用方式使其跳转到当前字段的开头。如果您不喜欢TAB
绑定到此功能,您可以将其绑定到 BibTeX 模式下的另一个命令。
此外,如果您需要有关模式的信息,可以键入C-h m
。在 BibTeX 模式下,它将显示以下内容,描述其预期用途:
BibTeX mode:
Major mode for editing BibTeX files.
General information on working with BibTeX mode:
Use commands such as C-c C-e b to get a template for a specific entry.
Then fill in all desired fields using C-j to jump from field
to field. After having filled in all desired fields in the entry, clean the
new entry with the command C-c C-c.
请注意,您可以设置 BibTeX 模式支持biblatex
。