Skip to content

Commit

Permalink
Expand custom{-theme,}-set-faces! example in docs/api.org
Browse files Browse the repository at this point in the history
To include usage of doom-themes' api
  • Loading branch information
hlissner committed Sep 10, 2019
1 parent 49b5274 commit 0e1bbc4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/api.org
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand All @@ -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!
Expand Down

0 comments on commit 0e1bbc4

Please sign in to comment.