[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line d594052b42 091/195: Add easy evil setup
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line d594052b42 091/195: Add easy evil setup |
Date: |
Wed, 5 Jan 2022 02:59:29 -0500 (EST) |
branch: elpa/telephone-line
commit d594052b42e70247f27bd4381777b56be5686a6c
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>
Add easy evil setup
---
readme.org | 12 ++++++++++--
telephone-line-config.el | 44 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 2 deletions(-)
diff --git a/readme.org b/readme.org
index 6672b7aa0b..74a9b2bca6 100644
--- a/readme.org
+++ b/readme.org
@@ -35,8 +35,16 @@ usual stuff:
(telephone-line-mode 1)
#+end_src
-The default theme should suffice for non-evil setups, but if you want
-to further configure it, read on!
+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)~.
+
+If you want to further configure it, read on!
* Configuration
diff --git a/telephone-line-config.el b/telephone-line-config.el
new file mode 100644
index 0000000000..6c7e146dfd
--- /dev/null
+++ b/telephone-line-config.el
@@ -0,0 +1,44 @@
+;;; telephone-line-config.el --- Easy config for telephone-line
+
+;; Copyright (C) 2015-2017 Daniel Bordak
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+;;
+;; Easy, premade config(s) for telephone-line.
+
+;;; Code:
+
+(require 'telephone-line)
+
+(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))))
+
+ (telephone-line-mode t))
+
+(provide 'telephone-line-config)
+;;; telephone-line-config.el ends here
- [nongnu] elpa/telephone-line bcb747a5c0 023/195: Oops, another cl call, (continued)
- [nongnu] elpa/telephone-line bcb747a5c0 023/195: Oops, another cl call, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d80e1bd857 119/195: Radically redo segment definitions, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d31a4a3e7f 121/195: Add experimental nyan-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line abbeb654fb 095/195: Missed these from a while ago, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a83dcda21b 096/195: Autoload the premade config, ELPA Syncer, 2022/01/05
- [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 <=
- [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, 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