Skip to content

Commit 7560832

Browse files
authored
Add info about evil-symbol-word-search to FAQ. (#1431)
For me, the Evil default of using words instead of symbols is only really important for `#` and `*` searches. The fix for them is much simpler than for the other motions after #360 (thanks!).
1 parent 5094271 commit 7560832

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/source/faq.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ consistent with other Emacs functions. For example, word characters
6565
are exactly those characters that are matched by the regular
6666
expression character class ``[:word:]``.
6767

68-
If you want the underscore to be recognised as word character, you can
69-
modify its entry in the syntax-table:
68+
If you would be satisfied by having the :kbd:`*` and :kbd:`#` searches
69+
use symbols instead of words, this can be achieved by setting the
70+
:elisp:ref:`evil-symbol-word-search` variable to ``t``.
71+
72+
If you want the underscore to be recognised as word character for other
73+
motions, you can modify its entry in the syntax-table:
7074

7175
.. code-block:: elisp
7276

0 commit comments

Comments
 (0)