From 28fa8542084241ded1a586aa7b7ad2a3730356b4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 18 Feb 2021 11:53:10 -0500 Subject: [PATCH] lang/emacs-lisp: fix custom-{,theme-}set-faces! demos No need to load the theme before using its API. The rules are deferred in any case. --- modules/lang/emacs-lisp/demos.org | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/lang/emacs-lisp/demos.org b/modules/lang/emacs-lisp/demos.org index 9ab9ba7a2..21739c42d 100644 --- a/modules/lang/emacs-lisp/demos.org +++ b/modules/lang/emacs-lisp/demos.org @@ -137,10 +137,8 @@ usage from their documentation (e.g. =SPC h f add-hook\!=). `(,red-bg-faces :background "red" :weight bold))) -;; If you want to make use of the `doom-themes' package API (e.g. `doom-color', -;; `doom-lighten', `doom-darken', etc.), you must use `custom-set-faces!' -;; *after* the theme has been loaded. e.g. -(load-theme 'doom-one t) +;; You may utilise `doom-themes's theme API to fetch or tweak colors from their +;; palettes. No need to wait until the theme or package is loaded. e.g. (custom-set-faces! `(outline-1 :foreground ,(doom-color 'red)) `(outline-2 :background ,(doom-color 'blue))) @@ -171,10 +169,8 @@ usage from their documentation (e.g. =SPC h f add-hook\!=). `(,red-bg-faces :background "red" :weight bold))) -;; If you want to make use of the `doom-themes' package API (e.g. `doom-color', -;; `doom-lighten', `doom-darken', etc.), you must use `custom-set-faces!' -;; *after* the theme has been loaded. e.g. -(load-theme 'doom-one t) +;; You may utilise `doom-themes's theme API to fetch or tweak colors from their +;; palettes. No need to wait until the theme or package is loaded. e.g. (custom-theme-set-faces! 'doom-one `(outline-1 :foreground ,(doom-color 'red)) `(outline-2 :background ,(doom-color 'blue)))