Expand custom{-theme,}-set-faces! example in docs/api.org

To include usage of doom-themes' api
This commit is contained in:
Henrik Lissner 2019-09-09 21:55:27 -04:00
parent 49b527475d
commit 0e1bbc4499
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -113,6 +113,14 @@ It is integrated into Helpful, in Doom.
:weight normal)
`(,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)
(custom-set-faces!
`(outline-1 :foreground ,(doom-color 'red))
`(outline-2 :background ,(doom-color 'blue)))
#+END_SRC
*** custom-theme-set-faces!
@ -139,6 +147,14 @@ It is integrated into Helpful, in Doom.
:weight normal)
`(,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)
(custom-theme-set-faces! 'doom-one
`(outline-1 :foreground ,(doom-color 'red))
`(outline-2 :background ,(doom-color 'blue)))
#+END_SRC
*** TODO defer-feature!