mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-14 05:43:04 +00:00
avy.el (avy-goto-word-0-regexp): New defcustom
* avy.el (avy-goto-word-0): Use `avy-goto-word-0-regexp'. Fixes #136
This commit is contained in:
parent
16370f92ec
commit
5f76c9d16e
9
avy.el
9
avy.el
@ -156,6 +156,13 @@ When nil, punctuation chars will not be matched.
|
|||||||
\"[!-/:-@[-`{-~]\" will match all printable punctuation chars."
|
\"[!-/:-@[-`{-~]\" will match all printable punctuation chars."
|
||||||
:type 'regexp)
|
:type 'regexp)
|
||||||
|
|
||||||
|
(defcustom avy-goto-word-0-regexp "\\b\\sw"
|
||||||
|
"Regexp that determines positions for `avy-goto-word-0'."
|
||||||
|
:type '(choice
|
||||||
|
(const :tag "Default" "\\b\\sw")
|
||||||
|
(const :tag "Not whitespace" "[^ \r\n\t]+")
|
||||||
|
(regexp :tag "Regex")))
|
||||||
|
|
||||||
(defcustom avy-ignored-modes '(image-mode doc-view-mode pdf-view-mode)
|
(defcustom avy-ignored-modes '(image-mode doc-view-mode pdf-view-mode)
|
||||||
"List of modes to ignore when searching for candidates.
|
"List of modes to ignore when searching for candidates.
|
||||||
Typically, these modes don't use the text representation.")
|
Typically, these modes don't use the text representation.")
|
||||||
@ -952,7 +959,7 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
|
|||||||
The window scope is determined by `avy-all-windows' (ARG negates it)."
|
The window scope is determined by `avy-all-windows' (ARG negates it)."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(avy-with avy-goto-word-0
|
(avy-with avy-goto-word-0
|
||||||
(avy--generic-jump "\\b\\sw" arg avy-style)))
|
(avy--generic-jump avy-goto-word-0-regexp arg avy-style)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun avy-goto-word-1 (char &optional arg)
|
(defun avy-goto-word-1 (char &optional arg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user