[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/autothemer 8ec0c27a73 19/21: Add color palette export/re-u
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/autothemer 8ec0c27a73 19/21: Add color palette export/re-use example |
Date: |
Thu, 6 Jan 2022 02:58:10 -0500 (EST) |
branch: elpa/autothemer
commit 8ec0c27a73b2d0a335eda63fde695a101e2956b2
Author: diego <9020453+dieggsy@users.noreply.github.com>
Commit: Jason Milkins <jasonm23@users.noreply.github.com>
Add color palette export/re-use example
---
readme.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/readme.md b/readme.md
index 71cd42ad4e..aa390b6369 100644
--- a/readme.md
+++ b/readme.md
@@ -162,6 +162,22 @@ We recommend thoroughly reviewing the auto generated
themes so that
you produce a high quality theme. Autothemer doesn't replace good
judgement and taste!
+### Re-using the color palette
+
+While autothemer doesn't export the defined color variables for external
+use, you can define simple advice on `autothemer-deftheme` to do so:
+
+```emacs-lisp
+(define-advice autothemer-deftheme (:before (_ _ palette &rest _) defcolors)
+ (mapcar (lambda (e)
+ (setf (symbol-value (car e))
+ (cadr e)))
+ (cdr palette)))
+```
+If you place the advice definition before the autothemer-generated theme
+is loaded, e.g. `my-red` from the example above will be available as a
+variable that can be used in other parts of your emacs configuration.
+
### Themes using Autothemer
- [Darktooth](https://github.com/emacsfodder/emacs-theme-darktooth)
- [nongnu] elpa/autothemer f7be1b486f 04/21: Cleanup, (continued)
- [nongnu] elpa/autothemer f7be1b486f 04/21: Cleanup, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 84a331860f 09/21: Fix for cl-lib, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 869c0e98d7 10/21: Merge pull request #3 from syohex/cl-lib, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer add7d430e0 13/21: call deftheme before evaluating BODY, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 13d1eafc04 14/21: Bump package version to 0.2.2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer d2f0fa1d92 16/21: Rework and flesh-out the README documentation (#9), ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 69488c71df 18/21: Do not require autothemer or dash at runtime. (#13), ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 36f1f4f0c7 21/21: Bump version to 0.2.3, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 8b865c39a2 08/21: Add readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 0fdabd22e0 11/21: Fix bug in autothemer-generate-templates, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 8ec0c27a73 19/21: Add color palette export/re-use example,
ELPA Syncer <=
- [nongnu] elpa/autothemer b318488f1e 02/21: Allow different face specs for different terminals, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 523a0994e5 07/21: Rename defautotheme to deftheme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 8c467f5757 15/21: Merge pull request #8 from jasonm23/patch-1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 9e27fbeae5 17/21: Find unused palette entries in generated themes, and fix the FIXME (#12), ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 2e96759b13 20/21: Add license header with GPLv3, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer f1ca2b43a7 06/21: Add brief description, ELPA Syncer, 2022/01/06
- [nongnu] elpa/autothemer 4f3ce16225 12/21: Create LICENSE, ELPA Syncer, 2022/01/06