Function: embark-bindings-in-keymap
embark-bindings-in-keymap is an autoloaded, interactive and
byte-compiled function defined in embark.el.
Signature
(embark-bindings-in-keymap KEYMAP)
Documentation
Explore command key bindings in KEYMAP with completing-read.
The selected command will be executed. Interactively, prompt the user for a KEYMAP variable.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
;;;###autoload
(defun embark-bindings-in-keymap (keymap)
"Explore command key bindings in KEYMAP with `completing-read'.
The selected command will be executed. Interactively, prompt the
user for a KEYMAP variable."
(interactive
(list
(symbol-value
(intern-soft
(completing-read
"Keymap: "
(embark--with-category
'variable
(cl-loop for x being the symbols
if (and (boundp x) (keymapp (symbol-value x)))
collect (symbol-name x)))
nil t nil 'variable-name-history
(let ((major-mode-map
(concat (symbol-name major-mode) "-map")))
(when (intern-soft major-mode-map) major-mode-map)))))))
(when-let* ((command (embark-completing-read-prompter keymap nil 'no-default)))
(call-interactively command)))