Variable: orderless-style-dispatchers

orderless-style-dispatchers is a customizable variable defined in orderless.el.

Value

(orderless-affix-dispatch)

Documentation

List of style dispatchers.

Style dispatchers are used to override the matching styles based on the actual component and its place in the list of components. A style dispatcher is a function that takes a string and two integers as arguments, it gets called with a component, the 0-based index of the component and the total number of components. It can decide what matching styles to use for the component and optionally replace the component with a different string, or it can decline to handle the component leaving it for future dispatchers. For details see orderless--dispatch.

For example, a style dispatcher could arrange for the first component to match as an initialism and subsequent components to match as literals. As another example, a style dispatcher could arrange for a component starting with ~ to match the rest of the component in the orderless-flex style. See orderless-affix-dispatch and orderless-affix-dispatch-alist for such a configuration. For more information on how this variable is used, see orderless-compile.

Source Code

;; Defined in ~/.emacs.d/elpa/orderless-20260519.1029/orderless.el
(defcustom orderless-style-dispatchers (list #'orderless-affix-dispatch)
  "List of style dispatchers.
Style dispatchers are used to override the matching styles
based on the actual component and its place in the list of
components.  A style dispatcher is a function that takes a string
and two integers as arguments, it gets called with a component,
the 0-based index of the component and the total number of
components.  It can decide what matching styles to use for the
component and optionally replace the component with a different
string, or it can decline to handle the component leaving it for
future dispatchers.  For details see `orderless--dispatch'.

For example, a style dispatcher could arrange for the first
component to match as an initialism and subsequent components to
match as literals.  As another example, a style dispatcher could
arrange for a component starting with `~' to match the rest of
the component in the `orderless-flex' style.  See
`orderless-affix-dispatch' and `orderless-affix-dispatch-alist'
for such a configuration.  For more information on how this
variable is used, see `orderless-compile'."
  :type '(repeat function))