1

Issuing M-x load-theme gives me the option solarized. However, issuing solarized gives the message Undefined Custom theme solarized.

Any ideas why I'm getting this error?

  • Did you try M-x enable-theme? – Tom Regner Aug 21 '15 at 5:58
  • @TomRegner Issuing M-x enable-theme does not give solarized as a possible completion. – Brian Fitzpatrick Aug 21 '15 at 6:01
  • Even after it's loaded (with M-x load-theme)? – Tom Regner Aug 21 '15 at 6:39
  • @TomRegner But my problem is that I can't load the theme... – Brian Fitzpatrick Aug 21 '15 at 6:39
  • Ah - english is not my first language, misread your post -- sorry for the noise. – Tom Regner Aug 21 '15 at 6:40
1

When you write a theme, you need to make sure everything is named correctly:

  • Your theme file must end with the postfix (or should I say suffix?) -theme
  • Your deftheme, provide-theme, and custom-theme-set-faces must not have the theme postfix -theme

I'm not sure if all of those are really needed, but I always do like this so I don't have this undefined error.

Oh, and don't forget to add your theme dir to the custom-theme-load-path list

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.