[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 755c25a 09/36: Add a new face for 'at-full style
From: |
Oleh Krehel |
Subject: |
[elpa] master 755c25a 09/36: Add a new face for 'at-full style |
Date: |
Tue, 19 May 2015 12:38:10 +0000 |
branch: master
commit 755c25a89bf01f1ad07c6ebd1bde08e1c5474794
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
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
---
avy-jump.el | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/avy-jump.el b/avy-jump.el
index ab04bad..1da11c6 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -115,6 +115,10 @@ When nil, punctuation chars will not be matched.
\"[!-/:address@hidden" 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)
- [elpa] master updated (b525e2d -> e559638), Oleh Krehel, 2015/05/19
- [elpa] master c2e7de3 01/36: avy-jump.el (avy-goto-subword-0): Add nreverse, Oleh Krehel, 2015/05/19
- [elpa] master 05e5c4d 06/36: README.md: mention avy-goto-line -> goto-line, Oleh Krehel, 2015/05/19
- [elpa] master 755c25a 09/36: Add a new face for 'at-full style,
Oleh Krehel <=
- [elpa] master cd8e626 02/36: avy-jump.el (avy-dowindows): Simplify, Oleh Krehel, 2015/05/19
- [elpa] master 3716cd0 03/36: avy-jump.el (avy-goto-subword-0): Update candidate order, Oleh Krehel, 2015/05/19
- [elpa] master dfbf0e2 13/36: targets/avy-init.el: Update, Oleh Krehel, 2015/05/19
- [elpa] master 60dd24b 12/36: Update avy-jump mentions in the README, Oleh Krehel, 2015/05/19
- [elpa] master a08b049 04/36: Fix jumping to newlines with at-full style, Oleh Krehel, 2015/05/19
- [elpa] master eed8f6f 15/36: avy.el (avy--regex-candidates): Add optional group arg, Oleh Krehel, 2015/05/19
- [elpa] master 0d83599 16/36: Update group name, Oleh Krehel, 2015/05/19
- [elpa] master ca69b1f 14/36: Add debug declarations, Oleh Krehel, 2015/05/19
- [elpa] master a53ffb7 05/36: Allow to break from `avy-goto-line' into `goto-line', Oleh Krehel, 2015/05/19
- [elpa] master ca302b4 08/36: targets/avy-init.el: Move, Oleh Krehel, 2015/05/19