Skip to main content
edited tags
Link
Drew
  • 79.1k
  • 10
  • 123
  • 257
Bumped by Community user
Bumped by Community user
edited title
Link

Settung Setting up a theme using use-package

Source Link

Settung up a theme using use-package

I'm doing a new setup so that I can have an init.el on my dropbox as a one stop shop for my configuration. So far so good but I'm stuck on the theme.

When I setup the code using load-path it all works like it should, all the colors and the modeline. My question is how can I do the same but using the use-package approach?

(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")

(setq molokai-theme-kit t)
(load-theme 'molokai t)

Is something like this possible?

(use-package molokai-theme 
  :ensure t
  :init
  (setq molokai-theme-kit t)
  (load-theme 'molokai t)
  )