mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
Add a new face for 'at-full style
* avy-jump.el (avy-lead-face-0): New face. (avy--overlay-at-full): If the path is longer than 1, propertize the first char with `avy-lead-face-0'. Re #5
This commit is contained in:
parent
ca302b4fe6
commit
755c25a89b
@ -115,6 +115,10 @@ When nil, punctuation chars will not be matched.
|
||||
\"[!-/:-@[-`{-~]\" will match all printable punctuation chars."
|
||||
:type 'regexp)
|
||||
|
||||
(defface avy-lead-face-0
|
||||
'((t (:foreground "white" :background "#4f57f9")))
|
||||
"Face used for the leading chars.")
|
||||
|
||||
(defface avy-lead-face
|
||||
'((t (:foreground "white" :background "#e52b50")))
|
||||
"Face used for the leading chars.")
|
||||
@ -294,6 +298,8 @@ LEAF is normally ((BEG . END) . WND)."
|
||||
(caar leaf)
|
||||
(car leaf)))
|
||||
(wnd (cdr leaf)))
|
||||
(when (> (length str) 1)
|
||||
(set-text-properties 0 1 '(face avy-lead-face-0) str))
|
||||
(with-selected-window wnd
|
||||
(save-excursion
|
||||
(goto-char beg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user