[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line cdbe1a6be5 140/195: Merge pull request #62
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line cdbe1a6be5 140/195: Merge pull request #62 from anandpiyer/master |
Date: |
Wed, 5 Jan 2022 02:59:40 -0500 (EST) |
branch: elpa/telephone-line
commit cdbe1a6be5da083b3abae73ee91bd19d62140192
Merge: cbaf1b8134 14d2abdbe0
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: GitHub <noreply@github.com>
Merge pull request #62 from anandpiyer/master
Added segments for window number and projectile.
---
telephone-line-segments.el | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index b1322f83da..1622cfe342 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -98,6 +98,25 @@ 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 (&optional
in-unicode)
+ (when (bound-and-true-p winum-mode)
+ (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)
+ (projectile-project-name))
+ (propertize (format "[%s]" (concat (projectile-project-name)))
+ 'face '(:inherit)
+ 'display '(raise 0.0)
+ 'help-echo "Switch project"
+ 'mouse-face '(:box 1)
+ 'local-map (make-mode-line-mouse-map
+ 'mouse-1 (lambda ()
+ (interactive)
+ (projectile-switch-project))))))
+
(telephone-line-defsegment* telephone-line-evil-tag-segment ()
(when (bound-and-true-p evil-mode)
(let ((tag (cond
- [nongnu] elpa/telephone-line 97f1935336 005/195: Namespace utils, (continued)
- [nongnu] elpa/telephone-line 97f1935336 005/195: Namespace utils, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 44ca430fe1 062/195: Corrected types for custom vars, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 9c36180ba2 021/195: Enhanced axis documentation and new trig function, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 70c113bea3 063/195: Version Bump, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 797f257642 183/195: Wrap the segment in bound-and-true-p, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1705f029c7 009/195: Better conform to existing standards, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 5968746a49 137/195: Added option to show window number in unicode., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 6e4e1e648b 151/195: Use built-in faces in flycheck-segment., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1dc10acfc4 175/195: Apparently this is the only hook that's needed now?, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 356e7b8834 117/195: Update docstring for new axis, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line cdbe1a6be5 140/195: Merge pull request #62 from anandpiyer/master,
ELPA Syncer <=
- [nongnu] elpa/telephone-line 3e73a0ed24 135/195: Add :args and :truncate segment modifiers, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line c17c71ae18 132/195: Add missing methods to telephone-line-unicode-separator, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 4885ebe7ae 130/195: Separate unicode separators out into their own class so they can be intermixed with XPM separators, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 9dfaef65b2 020/195: Formatting, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 80b642aee1 099/195: Add simple (no mouse bind) minor/major mode segments, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 45d97b4021 127/195: Oops, that was markdown format., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 9fe198d82c 008/195: Remove autoloads carried over from names, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d486eb3398 055/195: More indentation fixes, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line dd5a939edd 035/195: Fix error in erc segment when erc is not loaded, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 5638edc4fa 032/195: Fix title typo, ELPA Syncer, 2022/01/05