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

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

[nongnu] elpa/telephone-line 5968746a49 137/195: Added option to show wi


From: ELPA Syncer
Subject: [nongnu] elpa/telephone-line 5968746a49 137/195: Added option to show window number in unicode.
Date: Wed, 5 Jan 2022 02:59:40 -0500 (EST)

branch: elpa/telephone-line
commit 5968746a49a935a2d5874b803f15ac8743a9bfaa
Author: Anand <api@cs.berkeley.edu>
Commit: Anand <api@cs.berkeley.edu>

    Added option to show window number in unicode.
---
 telephone-line-segments.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 734464169f..258d5dd329 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -98,9 +98,11 @@ mouse-3: Toggle minor modes"
   (when (boundp 'erc-modified-channels-object)
     (string-trim erc-modified-channels-object)))
 
-(telephone-line-defsegment telephone-line-window-number-segment ()
+(telephone-line-defsegment telephone-line-window-number-segment (&optional 
in-unicode)
   (when (bound-and-true-p winum-mode)
-    (winum-get-number-string)))
+    (if in-unicode
+        (propertize (format "%c" (+ 9311 (winum-get-number))) 'face 
`winum-face)
+      (winum-get-number-string))))
 
 (telephone-line-defsegment telephone-line-projectile-segment ()
     (if (and (fboundp 'projectile-project-name)



reply via email to

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