mode-local-bind
mode-local-bind is a compiled Lisp function in `mode-local.el
'.
(mode-local-bind BINDINGS &optional PLIST MODE)
Define BINDINGS in the specified environment.
BINDINGS is a list of (VARIABLE . VALUE).
Optional argument PLIST is a property list each VARIABLE symbol will
be set to. The following properties have special meaning:
- `constant-flag' if non-nil, prevent to rebind variables.
- `mode-variable-flag' if non-nil, define mode variables.
- `override-flag' if non-nil, define override functions.
The `override-flag' and `mode-variable-flag' properties are mutually
exclusive.
If optional argument MODE is non-nil, it must be a major mode symbol.
BINDINGS will be defined globally for this major mode. If MODE is
nil, BINDINGS will be defined locally in the current buffer, in
variable `mode-local-symbol-table'. The later should be done in MODE
hook.