[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line 17bc3be4bf 145/195: Merge branch 'master' o
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line 17bc3be4bf 145/195: Merge branch 'master' of github.com:dbordak/telephone-line |
Date: |
Wed, 5 Jan 2022 02:59:41 -0500 (EST) |
branch: elpa/telephone-line
commit 17bc3be4bf2307f2cbe0e7d6583e8607727de553
Merge: 2fd44a2811 c9aca6ce03
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>
Merge branch 'master' of github.com:dbordak/telephone-line
---
telephone-line-segments.el | 36 +++++++++++++++++++++++++++++++++---
telephone-line.el | 3 ++-
2 files changed, 35 insertions(+), 4 deletions(-)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 1091b56088..923dbcbe74 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -143,9 +143,8 @@ If it doesn't exist, create and cache it."
(winum-get-number-string))))
(telephone-line-defsegment telephone-line-projectile-segment ()
- (if (and (fboundp 'projectile-project-name)
- (projectile-project-name))
- (propertize (format "[%s]" (concat (projectile-project-name)))
+ (if (fboundp 'projectile-project-name)
+ (propertize (projectile-project-name)
'face '(:inherit)
'display '(raise 0.0)
'help-echo "Switch project"
@@ -168,6 +167,37 @@ If it doesn't exist, create and cache it."
(seq-take tag 2)
tag))))
+(telephone-line-defsegment telephone-line-flycheck-segment ()
+ (when (bound-and-true-p flycheck-mode)
+ (let* ((text (pcase flycheck-last-status-change
+ ('finished (if flycheck-current-errors
+ (let-alist (flycheck-count-errors
flycheck-current-errors)
+ (if (or .error .warning)
+ (propertize (format "Problems: %s/%s"
+ (or .error 0) (or
.warning 0))
+ 'face '(:foreground
"orange"))
+ ""))
+ ":)"))
+ ('running "*")
+ ('no-checker "-")
+ ('not-checked "=")
+ ('errored (propertize "!" 'face '(:foreground
"tomato")))
+ ('interrupted (propertize "." 'face '(:foreground
"tomato")))
+ ('suspicious "?"))))
+ (propertize text
+ 'help-echo (pcase flycheck-last-status-change
+ ('finished "Display errors found by Flycheck")
+ ('running "Running...")
+ ('no-checker "No Checker")
+ ('not-checked "Not Checked")
+ ('errored "Error!")
+ ('interrupted "Interrupted")
+ ('suspicious "Suspicious?"))
+ 'display '(raise 0.0)
+ 'mouse-face '(:box 1)
+ 'local-map (make-mode-line-mouse-map
+ 'mouse-1 #'flycheck-list-errors)))))
+
(telephone-line-defsegment* telephone-line-xah-fly-keys-segment ()
(when (boundp xah-fly-insert-state-q)
(let ((tag (if xah-fly-insert-state-q
diff --git a/telephone-line.el b/telephone-line.el
index 063374779a..e4ef34d8aa 100644
--- a/telephone-line.el
+++ b/telephone-line.el
@@ -329,7 +329,8 @@ separators, as they are conditional, are evaluated
on-the-fly."
:group 'telephone-line)
(defcustom telephone-line-rhs
- '((nil . (telephone-line-misc-info-segment))
+ '((nil . (telephone-line-flycheck-segment
+ telephone-line-misc-info-segment))
(accent . (telephone-line-major-mode-segment))
(evil . (telephone-line-airline-position-segment)))
"Right hand side segment alist."
- [nongnu] elpa/telephone-line 6789e79806 124/195: Define nil separator in terms of a pattern func; fixes height support., (continued)
- [nongnu] elpa/telephone-line 6789e79806 124/195: Define nil separator in terms of a pattern func; fixes height support., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 41f84d47cd 087/195: Add headings to examples, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 59005be15b 114/195: Add arg list to defsegment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line c1f3a4dcc4 086/195: Add example configurations, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line ce5d99afd7 101/195: Oops., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 762344f5e5 123/195: Subclass telephone-line-nil-separator, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 80b09f3357 113/195: Add :inactive modifier, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 46c0fd2617 120/195: Temp fix for :active/:inactive, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line de2e4d5c86 153/195: Fix telephone-line-warning docstring., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line c4cab5a5dc 150/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 17bc3be4bf 145/195: Merge branch 'master' of github.com:dbordak/telephone-line,
ELPA Syncer <=
- [nongnu] elpa/telephone-line f30195b8a3 162/195: Remove dead function, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 65198f72f3 181/195: Merge pull request #111 from gagbo/patch-1, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line ff526441a2 195/195: Merge pull request #121 from skangas/bump-version, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line db5808e5db 065/195: Minor update, use new shim package instead of straight eieio, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3cb6ab4afc 161/195: Fix for #83, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line ef753fae21 193/195: Bump version to 0.5, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 123ba1f990 158/195: Little fix for projectile-buffer-segment., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line c077184452 191/195: Adapt flymake-segment to upstream changes, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 547979a092 194/195: Update copyright years, ELPA Syncer, 2022/01/05