branch: elpa/telephone-line
commit 67a28e82677438348241509b22a80e07b7e59ca6
Author: Gerry Agbobada <[email protected]>
Commit: GitHub <[email protected]>

    Add telephone-line-flymake-segment
    
    Flymake provides a `flymake--mode-line-format` for the time being, so we 
can wrap it to provide a simple segment for Flymake
---
 telephone-line-segments.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index e7035c188a..cd39b6d9a2 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -265,6 +265,10 @@ 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."
+  (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)

Reply via email to