branch: elpa/telephone-line
commit 5968746a49a935a2d5874b803f15ac8743a9bfaa
Author: Anand <[email protected]>
Commit: Anand <[email protected]>
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)