summaryrefslogtreecommitdiff
path: root/orderless.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-09-22 15:44:10 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2025-09-22 15:44:10 +0200
commit9cf1c90e2501566ceba59f3220b4630995004efd (patch)
tree46265e94e4158cdf5788c151fb8449b79c567a41 /orderless.el
parent211ccb906b9444f7210106909b37c402d582731a (diff)
Use correct type for defcustoms
Orderless expects a list of functions but a hook is not simply that. A hook can also be a single function, or a list which includes the special value t to reference the default value of the hook.
Diffstat (limited to 'orderless.el')
-rw-r--r--orderless.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/orderless.el b/orderless.el
index 50b4bb3..bd34856 100644
--- a/orderless.el
+++ b/orderless.el
@@ -124,7 +124,7 @@ The returned regexps can be either strings or s-expressions in
the entire match is highlighted, otherwise just the captured
groups are. Several are provided with this package: try
customizing this variable to see a list of them."
- :type 'hook
+ :type '(repeat function)
:options (list #'orderless-regexp
#'orderless-literal
#'orderless-initialism
@@ -199,7 +199,7 @@ 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 'hook)
+ :type '(repeat function))
(defcustom orderless-smart-case t
"Whether to use smart case.