Function: which-key--get-popup-map

which-key--get-popup-map is a byte-compiled function defined in which-key.el.gz.

Signature

(which-key--get-popup-map)

Documentation

Generate transient map for use in the top level binding display.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--get-popup-map ()
  "Generate transient map for use in the top level binding display."
  (unless which-key--automatic-display
    (let ((map (make-sparse-keymap)))
      (define-key map (kbd which-key-paging-key) #'which-key-C-h-dispatch)
      (when which-key-use-C-h-commands
        ;; Show next page even when C-h is pressed
        (define-key map (vector help-char) #'which-key-C-h-dispatch))
      map)))