Function: which-key-show-minor-mode-keymap

which-key-show-minor-mode-keymap is an autoloaded, interactive and byte-compiled function defined in which-key.el.gz.

Signature

(which-key-show-minor-mode-keymap &optional ALL)

Documentation

Show the top-level bindings in KEYMAP using which-key.

KEYMAP is selected interactively by mode in minor-mode-map-alist.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
;;;###autoload
(defun which-key-show-minor-mode-keymap (&optional all)
  "Show the top-level bindings in KEYMAP using which-key.
KEYMAP is selected interactively by mode in
`minor-mode-map-alist'."
  (interactive)
  (let ((mode-sym
         (intern
          (completing-read
           "Minor Mode: "
           (mapcar #'car
                   (cl-remove-if-not
                    (lambda (entry)
                      (and (symbol-value (car entry))
                           (not (equal (cdr entry) (make-sparse-keymap)))))
                    minor-mode-map-alist))
           nil t nil 'which-key-keymap-history))))
    (which-key--show-keymap (symbol-name mode-sym)
                            (cdr (assq mode-sym minor-mode-map-alist))
                            all)))