Download RefTEX User Manual
Transcript
Chapter 9: Options, Keymaps, Hooks
67
9.11 Miscellaneous
[User Option]
Non-nil means, make additional key bindings on startup. These extra bindings are
located in the users ‘C-c letter’ map. See Section 7.2 [Key Bindings], page 33.
reftex-extra-bindings
[User Option]
Plug-in flags for AUCTEX interface. This variable is a list of 5 boolean flags. When
a flag is non-nil, RefTEX will
- supply labels in new sections and environments (flag 1)
- supply arguments for macros like \label
(flag 2)
- supply arguments for macros like \ref
(flag 3)
- supply arguments for macros like \cite
(flag 4)
- supply arguments for macros like \index
(flag 5)
You may also set the variable itself to t or nil in order to turn all options on or off,
respectively.
Supplying labels in new sections and environments applies when creating sections
with C-c C-s and environments with C-c C-e.
Supplying macro arguments applies when you insert such a macro interactively with
C-c RET.
See the AUCTEX documentation for more information.
reftex-plug-into-AUCTeX
[User Option]
Non-nil means, follow-mode will revisit files if necessary. When nil, follow-mode will
be suspended for stuff in unvisited files.
reftex-revisit-to-follow
[User Option]
Non-nil means, allow arguments of macros to be detached by whitespace. When this
is t, the ‘aaa’ in ‘\bbb [xxx] {aaa}’ will be considered an argument of \bb. Note
that this will be the case even if \bb is defined with zero or one argument.
reftex-allow-detached-macro-args
9.12 Keymaps and Hooks
RefTEX has the usual general keymap, load hook and mode hook.
reftex-mode-map
[Keymap]
The keymap for RefTEX mode.
reftex-load-hook
[Normal Hook]
Normal hook which is being run when loading ‘reftex.el’.
reftex-mode-hook
[Normal Hook]
Normal hook which is being run when turning on RefTEX mode.
Furthermore, the four modes used for referencing labels, creating citations, the table of
contents buffer and the phrases buffer have their own keymaps and mode hooks. See the
respective sections. There are many more hooks which are described in the relevant sections
about options for a specific part of RefTEX.