diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index 8b382bd14dd..08dbb9dad19 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el @@ -1586,9 +1586,12 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'), :no-eval (text-property-search-backward 'face nil t))) (define-short-documentation-group keymaps - "Defining keymaps" + "Defining keymaps or adding bindings to existing keymaps" (define-keymap - :no-eval (define-keymap "C-c C-c" #'quit-buffer)) + :no-eval (define-keymap "C-c C-c" #'quit-buffer) + :no-eval (define-keymap :keymap ctl-x-map + "C-r" #'recentf-open + "k" #'kill-current-buffer)) (defvar-keymap :no-eval (defvar-keymap my-keymap "C-c C-c" #'quit-buffer)) "Setting keys" diff --git a/lisp/keymap.el b/lisp/keymap.el index c2e86204be4..2cd6c8b1433 100644 --- a/lisp/keymap.el +++ b/lisp/keymap.el @@ -609,7 +609,8 @@ pairs. Available keywords are: (see `set-keymap-parent'). :keymap If non-nil, instead of creating a new keymap, the given keymap - will be destructively modified instead. + will be destructively modified instead. This can be used to + add key bindings to an existing keymap. :name If non-nil, this should be a string to use as the menu for the keymap in case you use it as a menu with `x-popup-menu'.