[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/engrave-faces f4d3af3887 5/6: Elaborate on face preset
From: |
ELPA Syncer |
Subject: |
[elpa] externals/engrave-faces f4d3af3887 5/6: Elaborate on face preset format in docstring |
Date: |
Sat, 7 May 2022 15:57:30 -0400 (EDT) |
branch: externals/engrave-faces
commit f4d3af38871dbcef63a2f1936b74c912c2047dcf
Author: TEC <tec@tecosaur.com>
Commit: TEC <tec@tecosaur.com>
Elaborate on face preset format in docstring
---
engrave-faces.el | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/engrave-faces.el b/engrave-faces.el
index aebf6ee050..04d0576ad9 100644
--- a/engrave-faces.el
+++ b/engrave-faces.el
@@ -324,13 +324,28 @@ cdrs in the form of `engrave-faces-current-preset-style'."
(alist-get 'default engrave-faces-themes)
"Overriding face values.
-By setting :foreground, :background, etc. a certain theme can be set for
-the faces. The face attributes here will also be used when calculating
-inherited styles.
+This is constructed as an alist of faces, and their face attributes as a plist.
+For example, the \"default\" face coud be specified by:
+
+ (default :foreground \"#000000\" :background \"#FFFFFF\")
+
+By setting :foreground, :background, etc. a certain theme can be
+set for the faces. The face attributes here will also be used
+when calculating inherited styles.
Faces here will represented more compactly when possible, by using the
-:short or :slug parameter to produce a named version styles, wheras other
-faces will need to be explicitly styled each time they're used."
+:short or :slug parameter to produce a named version styles,
+- :short should be a descriptive string comprised of the character class
+ [A-Za-z0-9-_]
+- :slug should be a compact string (i.e. as short as possible), comprised of
the
+ character class [A-Za-Z]
+
+For example, for the \"default\" face,
+
+ (default :short \"def\" :slug \"D\"
+ :foreground \"#000000\" :background \"#FFFFFF\")
+
+Other faces will need to be styled explicitly each time they are used."
:type '(repeat
(cons (symbol :tag "Face")
(plist :key-type (choice
- [elpa] externals/engrave-faces updated (248196fb4d -> 0efa22cd62), ELPA Syncer, 2022/05/07
- [elpa] externals/engrave-faces 32fb760ca8 2/6: Don't record height/strike-through of default face, ELPA Syncer, 2022/05/07
- [elpa] externals/engrave-faces d3a8a55674 1/6: Update macro-generated interactive specs, ELPA Syncer, 2022/05/07
- [elpa] externals/engrave-faces e857ef72ed 4/6: Redraw display after switching back to orig theme, ELPA Syncer, 2022/05/07
- [elpa] externals/engrave-faces f4d3af3887 5/6: Elaborate on face preset format in docstring,
ELPA Syncer <=
- [elpa] externals/engrave-faces 7bb7f46e22 3/6: Reinterpret t theme as current theme, ELPA Syncer, 2022/05/07
- [elpa] externals/engrave-faces 0efa22cd62 6/6: LaTeX: Don't draw colorbox for default background, ELPA Syncer, 2022/05/07