[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line 14d2abdbe0 139/195: Merge branch 'master' i
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line 14d2abdbe0 139/195: Merge branch 'master' into master |
Date: |
Wed, 5 Jan 2022 02:59:40 -0500 (EST) |
branch: elpa/telephone-line
commit 14d2abdbe05a19fc259961875a4c3db3317b8ffe
Merge: 5968746a49 cbaf1b8134
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: GitHub <noreply@github.com>
Merge branch 'master' into master
---
telephone-line-segments.el | 73 +++++++++++++++++++++++-----------------------
1 file changed, 36 insertions(+), 37 deletions(-)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 258d5dd329..1622cfe342 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -116,43 +116,42 @@ mouse-3: Toggle minor modes"
'mouse-1 (lambda ()
(interactive)
(projectile-switch-project))))))
-
-(eval-after-load 'evil
- '(telephone-line-defsegment* telephone-line-evil-tag-segment ()
- (let ((tag (cond
- ((not (evil-visual-state-p)) (upcase (symbol-name
evil-state)))
- ((eq evil-visual-selection 'block)
- (if telephone-line-evil-use-short-tag "VB" "V-BLOCK"))
- ((eq evil-visual-selection 'line)
- (if telephone-line-evil-use-short-tag "VL" "V-LINE"))
- (t "VISUAL"))))
- (if telephone-line-evil-use-short-tag
- (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 'ryo-modal
- '(telephone-line-defsegment* telephone-line-ryo-modal-segment ()
- (let ((tag (if ryo-modal-mode
- "RYO" "EMACS")))
- (if telephone-line-evil-use-short-tag
- (seq-take tag 1)
- tag))))
-
-(eval-after-load 'workgroups2
- '(telephone-line-defsegment* telephone-line-workgroups2-segment ()
- (telephone-line-raw (wg-mode-line-string) t)))
-
-(eval-after-load 'nyan-mode
- '(telephone-line-defsegment* telephone-line-nyan-segment ()
- (nyan-create)))
+
+(telephone-line-defsegment* telephone-line-evil-tag-segment ()
+ (when (bound-and-true-p evil-mode)
+ (let ((tag (cond
+ ((not (evil-visual-state-p)) (upcase (symbol-name evil-state)))
+ ((eq evil-visual-selection 'block)
+ (if telephone-line-evil-use-short-tag "VB" "V-BLOCK"))
+ ((eq evil-visual-selection 'line)
+ (if telephone-line-evil-use-short-tag "VL" "V-LINE"))
+ (t "VISUAL"))))
+ (if telephone-line-evil-use-short-tag
+ (seq-take tag 2)
+ tag))))
+
+(telephone-line-defsegment* telephone-line-xah-fly-keys-segment ()
+ (when (boundp xah-fly-insert-state-q)
+ (let ((tag (if xah-fly-insert-state-q
+ "INSERT" "COMMAND")))
+ (if telephone-line-evil-use-short-tag
+ (seq-take tag 1)
+ tag))))
+
+(telephone-line-defsegment* telephone-line-ryo-modal-segment ()
+ (let ((tag (if (bound-and-true-p ryo-modal-mode)
+ "RYO" "EMACS")))
+ (if telephone-line-evil-use-short-tag
+ (seq-take tag 1)
+ tag)))
+
+(telephone-line-defsegment* telephone-line-workgroups2-segment ()
+ (when (bound-and-true-p workgroups-mode)
+ (telephone-line-raw (wg-mode-line-string) t)))
+
+(telephone-line-defsegment* telephone-line-nyan-segment ()
+ (when (bound-and-true-p nyan-mode)
+ (nyan-create)))
(provide 'telephone-line-segments)
;;; telephone-line-segments.el ends here
- [nongnu] elpa/telephone-line a83dcda21b 096/195: Autoload the premade config, (continued)
- [nongnu] elpa/telephone-line a83dcda21b 096/195: Autoload the premade config, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 9822d32b2b 084/195: Update screenshots more, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line f1f017607f 094/195: Fill now uses first right-hand segment for color, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 2162bdf9a3 098/195: Fix issue with airline position, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 23195b81b4 112/195: Add support for subsegment modifiers; add :active modifier, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 40cd97a791 097/195: Bump version number, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d594052b42 091/195: Add easy evil setup, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 5500d470b1 126/195: Update readme with mention of flat separator. Also forgot nil renderer., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 9e3502e7b5 085/195: Change default config to use airline position, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 68746c0d63 125/195: Rename telephone-line-nil to telephone-line-flat; include true nil separator., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 14d2abdbe0 139/195: Merge branch 'master' into master,
ELPA Syncer <=
- [nongnu] elpa/telephone-line 220a1a4a89 141/195: Update defaults + unify config, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 92a5cc6bb9 136/195: Added segments for window number and projectile., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1c154b7fd0 154/195: Inherit error face in telephone-line-error face., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a9d89b876d 157/195: Fix for symlinks, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 401a9c6ad6 159/195: Merge pull request #81 from ogdenwebb/fix-projectile-buffer-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line fb62b73c9f 164/195: Add docstring for HUD axis func, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 0e6fbc2a23 165/195: Merge branch 'master' into master, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1025d435af 169/195: Removed duplicate segment, renamed absolute-path segment for clarity, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3a6c433348 173/195: Add support for irc clients that use tracking mode, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line bf35654a67 011/195: Merge pull request #7 from syohex/cl-lib, ELPA Syncer, 2022/01/05