branch: elpa/telephone-line
commit 110c578ccf6c0421cfd9eec7aa3e960b6fd49fb4
Merge: 65198f72f3 797f257642
Author: Daniel Bordak <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #113 from gagbo/patch-2
Add telephone-line-flymake-segment
---
telephone-line-segments.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index e7035c188a..d667cd5335 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -265,6 +265,11 @@ Configure the face group telephone-line-evil to change the
colors per-mode."
(seq-take tag 2)
tag))))
+(telephone-line-defsegment telephone-line-flymake-segment ()
+ "Wraps `flymake-mode' mode-line information in a telephone-line segment."
+ (when (bound-and-true-p flymake-mode)
+ (telephone-line-raw flymake--mode-line-format t)))
+
(telephone-line-defsegment telephone-line-flycheck-segment ()
"Displays current checker state."
(when (bound-and-true-p flycheck-mode)