summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Antolín <omar.antolin@gmail.com>2020-04-15 19:00:42 -0500
committerOmar Antolín <omar.antolin@gmail.com>2020-04-15 19:00:42 -0500
commit118ec4f36ae9492b86304c05d4e3d0a3fb9d90db (patch)
tree4777a2d753f76d1e83e036d0f091f08a1b14faa5
parentc51037b8ef1d202199e0241401d0cd4e63fc6ffe (diff)
Document customization options
-rw-r--r--README.org28
1 files changed, 25 insertions, 3 deletions
diff --git a/README.org b/README.org
index 90a4fd5..a3b7567 100644
--- a/README.org
+++ b/README.org
@@ -1,8 +1,8 @@
* Overview
-This package provides an =orderless= completion style that divides
-the pattern into space-separated chunks, treats each on as a
-regexp, and matches canidates that match all of the regexps in any
+This package provides an =orderless= completion style that divides the
+pattern into space-separated components, treats each one as a regexp,
+and matches canidates that match all of the component regexps in any
order.
Completion styles are used as entries in the variables
@@ -18,3 +18,25 @@ on your =load-path=, and use the following configuration:
#+end_src
Bug reports are highly welcome and appreciated!
+
+* Customization
+
+** Component separator regexp
+
+The regexp components by default are space-separated, but this is
+controlled by the variable =orderless-regexp-separator=, which should be
+set to a regexp that matches the desired component separator. The
+default value matches a sequence of spaces. It may be useful to add
+hypens or slashes (or both), to match symbols or file paths,
+respectively.
+
+If you are implementing a command for which you know you want a
+different separator for the components, bind
+=orderless-regexp-separator= in a =let= form.
+
+** Faces for component matches
+
+The portions of a candidate matching each component get highlighted in
+one of four faces, =orderless-math-face-?= where =?= is a number from 0
+to 3. If the pattern has more than four components, the faces get
+reused cyclically.