I am using emacs with the prelude configuration.
I changed the theme and it works fine, and I added it in the preload directory like so :
;; preload color theme
(setq prelude-theme 'my-theme)
I installed the theme via prelude-require-packages, but not in the preload folder (not sure if it is available that soon). Is there a way to programmatically check if the theme is available, to replace the previous line with something more safe, like :
;; just to get the idea
(when (is-available 'my-theme)
(setq prelude-theme 'my-theme))
Edit I tried :
;; preload color theme
(when (featurep 'my-theme)
(setq prelude-theme 'my-theme))
But in this case I get the default theme, not 'my-theme.