branch: elpa/telephone-line
commit 09ff89a0901a9cee9b4211e98d5d78bfafe90a4f
Author: Daniel Bordak <[email protected]>
Commit: Daniel Bordak <[email protected]>
Add alias for modal colorsym, rename tl-evil-face to tl-modal-face
---
telephone-line.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/telephone-line.el b/telephone-line.el
index 0e33443673..c6153ba549 100644
--- a/telephone-line.el
+++ b/telephone-line.el
@@ -91,7 +91,8 @@
:group 'telephone-line-evil)
(defcustom telephone-line-faces
- '((evil . telephone-line-evil-face)
+ '((evil . telephone-line-modal-face)
+ (modal . telephone-line-modal-face)
(accent . (telephone-line-accent-active . telephone-line-accent-inactive))
(nil . (mode-line . mode-line-inactive)))
"Alist providing all the available face symbols.
@@ -182,8 +183,8 @@ Secondary separators do not incur a background color
change."
(face-attribute (telephone-line-face-map subseparator-sym)
:background))))
-(defun telephone-line-evil-face (active)
- "Return an appropriate face for the current evil mode, given whether the
frame is ACTIVE."
+(defun telephone-line-modal-face (active)
+ "Return an appropriate face for the current mode, given whether the frame is
ACTIVE."
(cond ((not active) 'mode-line-inactive)
((bound-and-true-p xah-fly-keys)
(if xah-fly-insert-state-q