Function: which-key-define-key-recursively
which-key-define-key-recursively is a byte-compiled function defined
in which-key.el.gz.
Signature
(which-key-define-key-recursively MAP KEY DEF &optional AT-ROOT)
Documentation
Recursively bind KEY in MAP to DEF on every level of MAP except the first.
If AT-ROOT is non-nil the binding is also placed at the root of MAP.
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key-define-key-recursively (map key def &optional at-root)
"Recursively bind KEY in MAP to DEF on every level of MAP except the first.
If AT-ROOT is non-nil the binding is also placed at the root of MAP."
(when at-root (define-key map key def))
(map-keymap
(lambda (_ev df)
(when (keymapp df)
(which-key-define-key-recursively df key def t)))
map))