Function: which-key-show-major-mode
which-key-show-major-mode is an autoloaded, interactive and
byte-compiled function defined in which-key.el.gz.
Signature
(which-key-show-major-mode &optional ALL)
Documentation
Show top-level bindings in the map of the current major mode.
This function will also detect evil bindings made using
evil-define-key in this map. These bindings will depend on the
current evil state.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
;;;###autoload
(defun which-key-show-major-mode (&optional all)
"Show top-level bindings in the map of the current major mode.
This function will also detect evil bindings made using
`evil-define-key' in this map. These bindings will depend on the
current evil state."
(interactive "P")
(let ((map-sym (intern (format "%s-map" major-mode))))
(if (and (boundp map-sym) (keymapp (symbol-value map-sym)))
(which-key--show-keymap
"Major-mode bindings"
(symbol-value map-sym)
(apply-partially #'which-key--map-binding-p (symbol-value map-sym))
all)
(message "which-key: No map named %s" map-sym))))