[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line 92a5cc6bb9 136/195: Added segments for wind
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line 92a5cc6bb9 136/195: Added segments for window number and projectile. |
Date: |
Wed, 5 Jan 2022 02:59:40 -0500 (EST) |
branch: elpa/telephone-line
commit 92a5cc6bb94106db4b2989dc51d69b626e3136a1
Author: Anand <api@cs.berkeley.edu>
Commit: Anand <api@cs.berkeley.edu>
Added segments for window number and projectile.
---
telephone-line-segments.el | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 960842c868..734464169f 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -98,6 +98,23 @@ 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 ()
+ (when (bound-and-true-p winum-mode)
+ (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))))))
+
(eval-after-load 'evil
'(telephone-line-defsegment* telephone-line-evil-tag-segment ()
(let ((tag (cond
- [nongnu] elpa/telephone-line f1f017607f 094/195: Fill now uses first right-hand segment for color, (continued)
- [nongnu] elpa/telephone-line f1f017607f 094/195: Fill now uses first right-hand segment for color, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 2162bdf9a3 098/195: Fix issue with airline position, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 23195b81b4 112/195: Add support for subsegment modifiers; add :active modifier, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 40cd97a791 097/195: Bump version number, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d594052b42 091/195: Add easy evil setup, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 5500d470b1 126/195: Update readme with mention of flat separator. Also forgot nil renderer., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 9e3502e7b5 085/195: Change default config to use airline position, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 68746c0d63 125/195: Rename telephone-line-nil to telephone-line-flat; include true nil separator., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 14d2abdbe0 139/195: Merge branch 'master' into master, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 220a1a4a89 141/195: Update defaults + unify config, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 92a5cc6bb9 136/195: Added segments for window number and projectile.,
ELPA Syncer <=
- [nongnu] elpa/telephone-line 1c154b7fd0 154/195: Inherit error face in telephone-line-error face., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a9d89b876d 157/195: Fix for symlinks, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 401a9c6ad6 159/195: Merge pull request #81 from ogdenwebb/fix-projectile-buffer-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line fb62b73c9f 164/195: Add docstring for HUD axis func, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 0e6fbc2a23 165/195: Merge branch 'master' into master, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 1025d435af 169/195: Removed duplicate segment, renamed absolute-path segment for clarity, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3a6c433348 173/195: Add support for irc clients that use tracking mode, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line bf35654a67 011/195: Merge pull request #7 from syohex/cl-lib, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 835179cc9b 060/195: Put segment stuff back in the correct place, further refactor for the new separators, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line ba6a56e027 018/195: Minor mode, ELPA Syncer, 2022/01/05