On Emacs 24.3.1 if I M-X load-theme
and load another theme, it often interferes with my current theme instead of replacing it, giving a very ugly result colour-wise.
An example is here, where the solarized-light
and wombat
themes are conflicting:
I solve this by doing a M-X disable-theme
of the old theme, is there a cleaner way to solve this?
Disabling first the active theme certainly helps.
If you add this to your init.el:
(defun disable-all-themes ()
"disable all active themes."
(dolist (i custom-enabled-themes)
(disable-theme i)))
(defadvice load-theme (before disable-themes-first activate)
(disable-all-themes))
the function load-theme
will first disable the active themes, before loading the new one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With