Function: bind-keys

bind-keys is an autoloaded macro defined in bind-key.el.gz.

Signature

(bind-keys &rest ARGS)

Documentation

Bind multiple keys at once.

Accepts keyword arguments:
:map MAP - a keymap into which the keybindings should be
                         added
:prefix KEY - prefix key for these bindings
:prefix-map MAP - name of the prefix map that should be created
                         for these bindings
:prefix-docstring STR - docstring for the prefix-map variable
:menu-name NAME - optional menu string for prefix map
:repeat-docstring STR - docstring for the repeat-map variable
:repeat-map MAP - name of the repeat map that should be created
                         for these bindings. If specified, the
                         repeat-map property of each command bound
                         (within the scope of the :repeat-map keyword)
                         is set to this map.
:exit BINDINGS - Within the scope of :repeat-map will bind the
                         key in the repeat map, but will not set the
                         repeat-map property of the bound command.
:continue BINDINGS - Within the scope of :repeat-map forces the
                         same behavior as if no special keyword had
                         been used (that is, the command is bound, and
                         it's repeat-map property set)
:filter FORM - optional form to determine when bindings apply

The rest of the arguments are conses of keybinding string and a function symbol (unquoted).

Source Code

;; Defined in /usr/src/emacs/lisp/use-package/bind-key.el.gz
;;;###autoload
(defmacro bind-keys (&rest args)
  "Bind multiple keys at once.

Accepts keyword arguments:
:map MAP               - a keymap into which the keybindings should be
                         added
:prefix KEY            - prefix key for these bindings
:prefix-map MAP        - name of the prefix map that should be created
                         for these bindings
:prefix-docstring STR  - docstring for the prefix-map variable
:menu-name NAME        - optional menu string for prefix map
:repeat-docstring STR  - docstring for the repeat-map variable
:repeat-map MAP        - name of the repeat map that should be created
                         for these bindings. If specified, the
                         `repeat-map' property of each command bound
                         (within the scope of the `:repeat-map' keyword)
                         is set to this map.
:exit BINDINGS         - Within the scope of `:repeat-map' will bind the
                         key in the repeat map, but will not set the
                         `repeat-map' property of the bound command.
:continue BINDINGS     - Within the scope of `:repeat-map' forces the
                         same behavior as if no special keyword had
                         been used (that is, the command is bound, and
                         it's `repeat-map' property set)
:filter FORM           - optional form to determine when bindings apply

The rest of the arguments are conses of keybinding string and a
function symbol (unquoted)."
  (macroexp-progn (bind-keys-form args nil)))