[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line 220a1a4a89 141/195: Update defaults + unify
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line 220a1a4a89 141/195: Update defaults + unify config |
Date: |
Wed, 5 Jan 2022 02:59:40 -0500 (EST) |
branch: elpa/telephone-line
commit 220a1a4a89ca95be9ae1fab356b92296fff5b73a
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>
Update defaults + unify config
---
readme.org | 9 ---------
telephone-line-config.el | 15 +--------------
telephone-line.el | 15 +++++++++------
3 files changed, 10 insertions(+), 29 deletions(-)
diff --git a/readme.org b/readme.org
index 627d1d0f23..187d7577a8 100644
--- a/readme.org
+++ b/readme.org
@@ -35,15 +35,6 @@ usual stuff:
(telephone-line-mode 1)
#+end_src
-If you want to use it with evil, instead you should do this
-
-#+begin_src emacs-lisp
-(require 'telephone-line-config)
-(telephone-line-evil-config)
-#+end_src
-
-This implicitly calls ~(telephone-line-mode 1)~.
-
* Separator Gallery
abs
diff --git a/telephone-line-config.el b/telephone-line-config.el
index dc785d4f81..02d5bbf698 100644
--- a/telephone-line-config.el
+++ b/telephone-line-config.el
@@ -25,20 +25,7 @@
;;;###autoload
(defun telephone-line-evil-config ()
- "A simple default for using telephone-line with evil."
- (setq telephone-line-lhs
- '((evil . (telephone-line-evil-tag-segment))
- (accent . (telephone-line-vc-segment
- telephone-line-erc-modified-channels-segment
- telephone-line-process-segment))
- (nil . (telephone-line-minor-mode-segment
- telephone-line-buffer-segment))))
-
- (setq telephone-line-rhs
- '((nil . (telephone-line-misc-info-segment))
- (accent . (telephone-line-major-mode-segment))
- (evil . (telephone-line-airline-position-segment))))
-
+ "Deprecated, just call (telephone-line-mode t) instead."
(telephone-line-mode t))
(provide 'telephone-line-config)
diff --git a/telephone-line.el b/telephone-line.el
index 6ef2a2dd6f..063374779a 100644
--- a/telephone-line.el
+++ b/telephone-line.el
@@ -197,7 +197,7 @@ Secondary separators do not incur a background color
change."
(if xah-fly-insert-state-q
'telephone-line-evil-insert
'telephone-line-evil-normal))
- ((not (boundp 'evil-state)) 'mode-line)
+ ((not (bound-and-true-p evil-mode)) 'mode-line)
(t (intern (concat "telephone-line-evil-" (symbol-name evil-state))))))
;;TODO: Clean this up
@@ -306,8 +306,11 @@ separators, as they are conditional, are evaluated
on-the-fly."
base-width)))
(defcustom telephone-line-lhs
- '((accent . (telephone-line-vc-segment))
- (nil . (telephone-line-minor-mode-segment
+ '((evil . (telephone-line-evil-tag-segment))
+ (accent . (telephone-line-vc-segment
+ telephone-line-erc-modified-channels-segment
+ telephone-line-process-segment))
+ (nil . (telephone-line-projectile-segment
telephone-line-buffer-segment)))
"Left hand side segment alist."
:type '(alist :key-type segment-color :value-type subsegment-list)
@@ -326,9 +329,9 @@ separators, as they are conditional, are evaluated
on-the-fly."
:group 'telephone-line)
(defcustom telephone-line-rhs
- '((nil . (telephone-line-misc-info-segment
- telephone-line-major-mode-segment))
- (accent . (telephone-line-airline-position-segment)))
+ '((nil . (telephone-line-misc-info-segment))
+ (accent . (telephone-line-major-mode-segment))
+ (evil . (telephone-line-airline-position-segment)))
"Right hand side segment alist."
:type '(alist :key-type segment-color :value-type subsegment-list)
:group 'telephone-line)
- [nongnu] elpa/telephone-line 9822d32b2b 084/195: Update screenshots more, (continued)
- [nongnu] elpa/telephone-line 9822d32b2b 084/195: Update screenshots more, ELPA Syncer, 2022/01/05
- [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 <=
- [nongnu] elpa/telephone-line 92a5cc6bb9 136/195: Added segments for window number and projectile., ELPA Syncer, 2022/01/05
- [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