Defer added hooks until doom-themes is loaded

Fixes an issue where doom-themes-{org,neotree,treemacs}-config are
called before doom-themes is loaded (which may never happen if you
aren't using a doom-themes theme).
This commit is contained in:
Henrik Lissner 2019-03-17 23:19:55 -04:00
parent 82ef3e987b
commit 949d5ab343
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -27,6 +27,7 @@
:init
(unless doom-theme
(setq doom-theme 'doom-one))
:config
;; improve integration w/ org-mode
(add-hook 'doom-load-theme-hook #'doom-themes-org-config)
;; more Atom-esque file icons for neotree/treemacs