emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/telephone-line 67a28e8267 182/195: Add telephone-line-flym


From: ELPA Syncer
Subject: [nongnu] elpa/telephone-line 67a28e8267 182/195: Add telephone-line-flymake-segment
Date: Wed, 5 Jan 2022 03:00:04 -0500 (EST)

branch: elpa/telephone-line
commit 67a28e82677438348241509b22a80e07b7e59ca6
Author: Gerry Agbobada <10496163+gagbo@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    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

[Prev in Thread] Current Thread [Next in Thread]