avy.el (avy-goto-char-timer): Obey avy-styles-alist

Fixes #67
This commit is contained in:
Oleh Krehel 2015-06-21 17:03:18 +02:00
parent 44d76b9d2a
commit 8d38a898f2
2 changed files with 15 additions and 10 deletions

3
avy.el
View File

@ -934,13 +934,14 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
(interactive "P")
(let ((c1 (read-char "char 1: "))
(c2 (read-char "char 2: " nil avy-timeout-seconds)))
(avy--with-avy-keys avy-goto-char-timer
(avy--generic-jump
(regexp-quote
(if c2
(string c1 c2)
(string c1)))
arg
avy-style)))
avy-style))))
(define-obsolete-variable-alias
'avy-goto-char-style 'avy-style "0.1.0"

View File

@ -164,9 +164,9 @@ See [[https://github.com/abo-abo/avy/issues/57][#57]].
See the [[https://github.com/abo-abo/avy/wiki/custom-commands][the custom-commands wiki page]] and [[https://github.com/abo-abo/avy/issues/55][#55]].
*** New face setup
New variable =avy-lead-faces= will determine the faces used to color the current decision depth you're in.
For example, if to select a particular candidate you need to press "abc":
New variable =avy-lead-faces= will determine the faces used to color
the current decision depth you're in. For example, if to select a
particular candidate you need to press "abc":
- "a" will be highlighted with a face that corresponds to depth 3
- "b" will be highlighted with a face that corresponds to depth 2
@ -205,3 +205,7 @@ Use this to restore the previous default behavior:
#+begin_src elisp
(setq avy-style 'pre)
#+end_src
* trunk
** Fixes
*** =avy-goto-char-timer= obeys =avy-styles-alist=