[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master dfe24f3 11/17: Add `avi-word-punc-regexp` defcustom
From: |
Oleh Krehel |
Subject: |
[elpa] master dfe24f3 11/17: Add `avi-word-punc-regexp` defcustom |
Date: |
Fri, 08 May 2015 13:43:42 +0000 |
branch: master
commit dfe24f3d80ffa6093fea2a6600ca8179638394d7
Author: Kaushal Modi <address@hidden>
Commit: Kaushal Modi <address@hidden>
Add `avi-word-punc-regexp` defcustom
- Setting this to nil will disable jumping to punctuation chars during
`avi-goto-word-1`.
- Set this to a regexp of punctuation chars you want to match otherwise.
- "[!-/:address@hidden" will match all printable punctuation chars.
---
avy-jump.el | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index c1c03ab..ed0554a 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -42,6 +42,12 @@
"When non-nil, a gray background will be added during the selection."
:type 'boolean)
+(defcustom avi-word-punc-regexp "[!-/:address@hidden"
+ "Regexp of punctuation characters that should be matched when calling
+`avi-goto-word-1' command. When nil, punctuation chars will not be matched.
+
+\"[!-/:address@hidden" will match all printable punctuation chars.")
+
(defface avi-lead-face
'((t (:foreground "white" :background "#e52b50")))
"Face used for the leading chars.")
@@ -249,7 +255,8 @@ Read one char with which the word should start."
(interactive)
(let* ((str (string (read-char "char: ")))
(candidates (avi--regex-candidates
- (if (string-match "[,.+-*/=]" str)
+ (if (and avi-word-punc-regexp
+ (string-match avi-word-punc-regexp str))
str
(concat
"\\b"
- [elpa] master updated (876d210 -> 269e61a), Oleh Krehel, 2015/05/08
- [elpa] master 7b44c1f 01/17: avy-jump.el (avi-goto-subword-0): New command, Oleh Krehel, 2015/05/08
- [elpa] master b61131c 03/17: avy-jump.el (avi--overlay-pre): Handle plain numbers, Oleh Krehel, 2015/05/08
- [elpa] master ff4ce51 02/17: Don't collect candidates hidden by outlines, Oleh Krehel, 2015/05/08
- [elpa] master cd6583b 04/17: avy-jump.el (avi-all-windows): New defcustom, Oleh Krehel, 2015/05/08
- [elpa] master f92689a 06/17: avy-jump.el (avi--line): Fixup the issue with org outlines, Oleh Krehel, 2015/05/08
- [elpa] master 17b44a8 05/17: Update a few commands to jump in one or more windows, Oleh Krehel, 2015/05/08
- [elpa] master 3bbd404 08/17: Make sure avi-move-line and avi-copy-line behave consistently., Oleh Krehel, 2015/05/08
- [elpa] master ca92a08 09/17: avy-jump.el (avi-goto-word-1): Count some syms as words, Oleh Krehel, 2015/05/08
- [elpa] master dfe24f3 11/17: Add `avi-word-punc-regexp` defcustom,
Oleh Krehel <=
- [elpa] master 6a0acfc 10/17: Add "make compile" and "make run", Oleh Krehel, 2015/05/08
- [elpa] master ee76efd 12/17: Fix rounding error, Oleh Krehel, 2015/05/08
- [elpa] master d1780dd 07/17: avy-jump.el (avi-goto-line): Work with one or more windows, Oleh Krehel, 2015/05/08
- [elpa] master 1e94459 13/17: avy-jump.el (avi--goto): Push mark before moving, Oleh Krehel, 2015/05/08
- [elpa] master c53b0d2 14/17: Start the decoupling of ace-window and avy-jump, Oleh Krehel, 2015/05/08
- [elpa] master cc38c04 16/17: Bump version, Oleh Krehel, 2015/05/08
- [elpa] master 269e61a 17/17: Merge commit 'cc38c044a13e6df822431d6c706cf4b9255900bd' from ace-window, Oleh Krehel, 2015/05/08
- [elpa] master 05e7016 15/17: Ace Window now depends on Avy, Oleh Krehel, 2015/05/08