Variable: which-key-sort-order

which-key-sort-order is a customizable variable defined in which-key.el.gz.

Value

which-key-key-order

Documentation

Order in which the key bindings are sorted.

If nil, do not resort the output from describe-buffer-bindings which groups by mode. Ordering options are:

1. which-key-key-order: by key (default)
2. which-key-key-order-alpha: by key using alphabetical order
3. which-key-description-order: by description
4. which-key-prefix-then-key-order: prefix (no prefix first) then key
5. which-key-local-then-key-order: local binding then key

See the README and the docstrings for those functions for more information.

This variable was added, or its default value changed, in which-key version 1.0.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defcustom which-key-sort-order #'which-key-key-order
  "Order in which the key bindings are sorted.
If nil, do not resort the output from `describe-buffer-bindings'
which groups by mode.  Ordering options are:

1. `which-key-key-order': by key (default)
2. `which-key-key-order-alpha': by key using alphabetical order
3. `which-key-description-order': by description
4. `which-key-prefix-then-key-order': prefix (no prefix first) then key
5. `which-key-local-then-key-order': local binding then key

See the README and the docstrings for those functions for more
information."
  :type '(choice (function-item which-key-key-order)
                 (function-item which-key-key-order-alpha)
                 (function-item which-key-description-order)
                 (function-item which-key-prefix-then-key-order)
                 (function-item which-key-local-then-key-order))
  :package-version '(which-key . "1.0") :version "30.1")