[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line f5e6663883 037/195: Much more Readme conten
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line f5e6663883 037/195: Much more Readme content |
Date: |
Wed, 5 Jan 2022 02:59:20 -0500 (EST) |
branch: elpa/telephone-line
commit f5e66638832cbb9c1fd8d3ff633b37a7909d56d5
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>
Much more Readme content
---
readme.org | 54 +++++++++++++++++++++++++++++++++++---
screenshots/diagram-1-cropped.png | Bin 0 -> 45809 bytes
2 files changed, 50 insertions(+), 4 deletions(-)
diff --git a/readme.org b/readme.org
index 44e1e88d0d..0e493a76c5 100644
--- a/readme.org
+++ b/readme.org
@@ -9,9 +9,10 @@
[[./screenshots/gradient.png]]
-Telephone Line is a new implementation of Powerline with a few new
-features that set it apart from the existing Emacs implementations:
-_easier customization_ and _antialiased separators_.
+Telephone Line is a new implementation of Powerline for emacs with
+_(optional) baked-in evil support_, _antialiased separators_, and an
+_easy configuration language_ which makes it _trivial to write your
+own themes_.
* Installation
@@ -24,8 +25,53 @@ 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!
+
* Configuration
+Themes are defined by customizing the ~telephone-line-lhs~ and
+~telephone-line-rhs~ variables, for the left and right parts of the
+mode-line, respectively.
+
+The configuration format for both is an alist containing pairs of the form
+
+#+begin_src emacs-lisp
+(COLOR-SYMBOL . (LIST OF SUBSEGMENT FUNCTIONS))
+#+end_src
+
+Each one of these pairs defines a "supersegment" -- a bunch of
+subsegments using the same face. In the screenshots, you can see the
+minor modes and buffer information are in the same color, though they
+aren't the same segment (i.e. "FlyC- ivy U:--- \*scratch\*" consists
+of the subsegments "FlyC- ivy" and "U:--- \*scratch\*"). These
+subsegments are separated by secondary separators, such as the thin
+powerline symbol (it looks like '>', but larger).
+
+The ~Color Symbol~ determines what face is used for the supersegment.
+By default*, the choices are:
+
+#+begin_example
+ nil: mode-line or mode-line-inactive
+ accent: telephone-line-accent-active or
telephone-line-accent-inactive
+ evil: telephone-line-evil-{insert, normal, etc.} or mode-line-inactive
+#+end_example
+
+*There is no way of adding more color symbols for now.
+
+** Diagram
+
+[[./screenshots/diagram-1-cropped.png]]
+
+This shows how a config maps to the mode-line. Important to note is
+how the accent supersegment has three subsegments, but only one is
+displayed (and there are no subseparators). This is because
+subsegments are dynamic. When a subsegment has no information to
+display, it doesn't need a subseparator (in contrast, primary
+separators are _always_ displayed).
+
+** Example Configuration
+
The screenshots above aren't the default configuration; it's all
defined in my dotfiles.
@@ -75,7 +121,7 @@ separator, defined as 2*abs(x).
4 | *
#+END_EXAMPLE
-There you go -- a separator. However, we still need another piece.
+There you go: a separator. However, we still need another piece.
That second function I mentioned determines the fill -- the difference
between a solid separator and a hollow one.
diff --git a/screenshots/diagram-1-cropped.png
b/screenshots/diagram-1-cropped.png
new file mode 100644
index 0000000000..28dcf108e4
Binary files /dev/null and b/screenshots/diagram-1-cropped.png differ
- [nongnu] elpa/telephone-line 5c47442844 083/195: Update readme + screenshots, (continued)
- [nongnu] elpa/telephone-line 5c47442844 083/195: Update readme + screenshots, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 30225c9778 069/195: Fix Emacs 25, oops, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 8b3c9499bf 051/195: Oops, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 5766b1b21f 033/195: Merge pull request #11 from ryanprior/patch-1, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 0d15e2882b 002/195: Add the fruits of my labor, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 09997c1aee 006/195: Cleanup, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 06887f2440 001/195: Initial commit, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 5919a8e296 003/195: Fix package info, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 303cc3a1cd 010/195: Use cl-lib function instead of cl.el, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d18709b144 044/195: Add Melpa Stable badge, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line f5e6663883 037/195: Much more Readme content,
ELPA Syncer <=
- [nongnu] elpa/telephone-line 32245b5e30 072/195: Update copyright, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3ad335a4c4 028/195: Correct default rhs value, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 7feb552dcf 048/195: Remove names, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a2e2b5652f 013/195: Add emacs version requirement, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d991dd296f 019/195: Excessive autoloads, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a0409eeaba 066/195: Fix incorrect colors on startup, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 8064222a9f 038/195: Advice needs docstrings too, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 199fa476a1 050/195: Remove redundant TODOs, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 34610ced86 034/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 892d651828 043/195: Fix readme formatting, ELPA Syncer, 2022/01/05