Function: which-key-key-order

which-key-key-order is a byte-compiled function defined in which-key.el.gz.

Signature

(which-key-key-order ACONS BCONS)

Documentation

Order key descriptions A and B.

Order is lexicographic within a "class", where the classes and the ordering of classes are listed below.

special (SPC,TAB,...) < single char < mod (C-,M-,...) < other.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defsubst which-key-key-order (acons bcons)
  "Order key descriptions A and B.
Order is lexicographic within a \"class\", where the classes and
the ordering of classes are listed below.

special (SPC,TAB,...) < single char < mod (C-,M-,...) < other."
  (which-key--key-description< (car acons) (car bcons)))