emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/alect-themes e936a5c 096/269: Update README for class of t


From: ELPA Syncer
Subject: [nongnu] elpa/alect-themes e936a5c 096/269: Update README for class of terminals
Date: Thu, 21 Oct 2021 17:58:57 -0400 (EDT)

branch: elpa/alect-themes
commit e936a5c89af08006f9b9157d484186fff507f11f
Author: Alex Kost <alezost@gmail.com>
Commit: Alex Kost <alezost@gmail.com>

    Update README for class of terminals
---
 README.md | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 4a97300..1741f39 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
 
 Alect is a package that provides (rather low contrast but colourful
 enough) **configurable** light and dark color themes for GNU Emacs 24 or
-later.  I use it only with GUI, so colors in terminal may look not very
-nice.
+later.  The themes are intended to be used with GUI (see
+[Class of terminals](#class-of-terminals)).
 
 ## History
 
@@ -74,6 +74,24 @@ There are 2 main ways for configuring the themes:
 - modifying palette (`alect-colors` variable);
 - overriding face specifications.
 
+### Class of terminals
+
+By default only graphical terminals are supported, i.e. if you enable a
+theme, you will see themed faces in GUI and default faces in text-only
+terminals.  So if you use `emacs --daemon`, you will not be disturbed by
+the ugly colors when you are in a non-graphical terminal.
+
+You can add support for other terminals by setting `alect-display-class`
+variable.  For example, if you want to enable alect-themes in 256-colors
+terminals, use the following:
+
+```lisp
+(setq alect-display-class '((class color) (min-colors 256)))
+```
+
+See `(info "(elisp) Defining Faces")` for how a class of terminals
+should be specified.
+
 ### Modifying palette
 
 If you don't like how some colors look, you can change `alect-colors`



reply via email to

[Prev in Thread] Current Thread [Next in Thread]