[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line 502285b6bc 077/195: Add support for xah-fly
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line 502285b6bc 077/195: Add support for xah-fly-keys |
Date: |
Wed, 5 Jan 2022 02:59:28 -0500 (EST) |
branch: elpa/telephone-line
commit 502285b6bc20b1c5929048794b092c3c8e8090b0
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>
Add support for xah-fly-keys
---
telephone-line-segments.el | 8 ++++++++
telephone-line.el | 6 +++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 501929b9cc..b75967c7dd 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -96,6 +96,14 @@ mouse-3: Toggle minor modes"
(seq-take tag 2)
tag))))
+(eval-after-load 'xah-fly-keys
+ '(telephone-line-defsegment* telephone-line-xah-fly-keys-segment
+ (let ((tag (if xah-fly-insert-state-q
+ "INSERT" "COMMAND")))
+ (if telephone-line-evil-use-short-tag
+ (seq-take tag 1)
+ tag))))
+
(eval-after-load 'workgroups2
'(telephone-line-defsegment telephone-line-workgroups2-segment
(wg-mode-line-string)))
diff --git a/telephone-line.el b/telephone-line.el
index 58db17922d..5456e54bfd 100644
--- a/telephone-line.el
+++ b/telephone-line.el
@@ -161,6 +161,10 @@ Secondary separators do not incur a background color
change."
(defun telephone-line-evil-face (active)
"Return an appropriate face for the current evil mode, given whether the
frame is ACTIVE."
(cond ((not active) 'mode-line-inactive)
+ ((and (boundp 'xah-fly-keys) xah-fly-keys)
+ (if xah-fly-insert-state-q
+ 'telephone-line-evil-insert
+ 'telephone-line-evil-normal))
((not (boundp 'evil-state)) 'mode-line)
(t (intern (concat "telephone-line-evil-" (symbol-name evil-state))))))
@@ -223,7 +227,7 @@ separators, as they are conditional, are evaluated
on-the-fly."
'(nil . nil))))
(defun telephone-line-width (values num-separators separator)
- "Get the column-length of VALUES, with NUM-SEPARATORS interposed."
+ "Get the column-length of VALUES, with NUM-SEPARATORS SEPARATORs interposed."
(let ((base-width (string-width (format-mode-line values)))
(separator-width (/ (telephone-line-separator-width separator)
(float (frame-char-width)))))
- [nongnu] branch elpa/telephone-line created (now ff526441a2), ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a84f75000c 017/195: Face hierarchy, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 6fd0211efe 045/195: Add GPL badge, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line b6dcd27331 025/195: Add install instructions, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 502285b6bc 077/195: Add support for xah-fly-keys,
ELPA Syncer <=
- [nongnu] elpa/telephone-line 315054ffb4 068/195: Minor fixes, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 48f2894e95 046/195: Add initial support for multiple frames, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1f2389212b 024/195: Remove -enable and -disable entirely, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line de93becc18 039/195: Merge pull request #12 from bjpbakker/fix/erc-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 5ccd246d25 049/195: Documentation update, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line ae636f7ca2 041/195: Version bump, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 8bc83573c3 061/195: Fix unicode separators, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1b52832b44 054/195: Nameless indentation, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 676b57d819 081/195: Made subseparator colors customizeable, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 00600d46c9 042/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05