Variable: transient-highlight-mismatched-keys

transient-highlight-mismatched-keys is a customizable variable defined in transient.el.

Value

nil

Documentation

Whether to highlight keys that do not match their argument.

This is mostly intended for authors of transient menus and disabled by default.

This only affects infix arguments that represent command-line arguments. When this option is non-nil, then the key binding for infix argument are highlighted when only a long argument (e.g., "--verbose") is specified but no shorthand (e.g., "-v"). In the rare case that a short-hand is specified but does not match the key binding, then it is highlighted differently.

The highlighting is done using transient-mismatched-key and transient-nonstandard-key.

This variable was added, or its default value changed, in transient version 0.1.0.

Source Code

;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defcustom transient-highlight-mismatched-keys nil
  "Whether to highlight keys that do not match their argument.

This is mostly intended for authors of transient menus and disabled by
default.

This only affects infix arguments that represent command-line arguments.
When this option is non-nil, then the key binding for infix argument are
highlighted when only a long argument \(e.g., \"--verbose\") is specified
but no shorthand (e.g., \"-v\"). In the rare case that a short-hand is
specified but does not match the key binding, then it is highlighted
differently.

The highlighting is done using `transient-mismatched-key'
and `transient-nonstandard-key'."
  :package-version '(transient . "0.1.0")
  :group 'transient
  :type 'boolean)