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.
This commit is contained in:
Henrik Lissner 2021-02-18 11:53:10 -05:00
parent afde833ae8
commit 28fa854208

View file

@ -137,10 +137,8 @@ usage from their documentation (e.g. =SPC h f add-hook\!=).
`(,red-bg-faces `(,red-bg-faces
:background "red" :weight bold))) :background "red" :weight bold)))
;; If you want to make use of the `doom-themes' package API (e.g. `doom-color', ;; You may utilise `doom-themes's theme API to fetch or tweak colors from their
;; `doom-lighten', `doom-darken', etc.), you must use `custom-set-faces!' ;; palettes. No need to wait until the theme or package is loaded. e.g.
;; *after* the theme has been loaded. e.g.
(load-theme 'doom-one t)
(custom-set-faces! (custom-set-faces!
`(outline-1 :foreground ,(doom-color 'red)) `(outline-1 :foreground ,(doom-color 'red))
`(outline-2 :background ,(doom-color 'blue))) `(outline-2 :background ,(doom-color 'blue)))
@ -171,10 +169,8 @@ usage from their documentation (e.g. =SPC h f add-hook\!=).
`(,red-bg-faces `(,red-bg-faces
:background "red" :weight bold))) :background "red" :weight bold)))
;; If you want to make use of the `doom-themes' package API (e.g. `doom-color', ;; You may utilise `doom-themes's theme API to fetch or tweak colors from their
;; `doom-lighten', `doom-darken', etc.), you must use `custom-set-faces!' ;; palettes. No need to wait until the theme or package is loaded. e.g.
;; *after* the theme has been loaded. e.g.
(load-theme 'doom-one t)
(custom-theme-set-faces! 'doom-one (custom-theme-set-faces! 'doom-one
`(outline-1 :foreground ,(doom-color 'red)) `(outline-1 :foreground ,(doom-color 'red))
`(outline-2 :background ,(doom-color 'blue))) `(outline-2 :background ,(doom-color 'blue)))