0

I am using Doom Emacs, and have the following snippet in my config.el:

(if (display-graphic-p)
    (setq doom-theme 'kaolin-ocean)
    (setq doom-theme 'doom-vibrant))
(let ((custom--inhibit-theme-enable nil))
   (custom-theme-set-faces 'kaolin-ocean '(org-agenda-date ((t (:foreground "#dbac66" ))))))

I really like the Kaolin-Ocean theme, but wished that in my org-agenda it colored my dates a different color from regular text, which is what the last two lines are supposed to do.

If I comment those last two lines out my config loads without any issues. However, with those lines in, I get the following error message:

Warning (initialization): An error occurred while loading ‘~/.emacs.d/init.el’:

Error in private config: config.el, (error Unknown theme ‘kaolin-ocean’)

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

If, on the other hand, I eval-buffer my config.el manually it throws no error, and produces the desired behavior. Any ideas what might be happening?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.