Permalink
Browse files

Make the interactive theme functions set the theme exclusively

  • Loading branch information...
1 parent 2ed42ad commit 13b8b493e32879e09873ab862ed1340b9d2ba035 @purcell committed Apr 16, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 color-theme-sanityinc-solarized.el
@@ -577,9 +577,11 @@ are bound."
((eq 'light mode) 'sanityinc-solarized-light)
((eq 'dark mode) 'sanityinc-solarized-dark)
(t (error "invalid mode: %s" mode)))))
- (if (> emacs-major-version 23)
- (load-theme name t)
- (load-theme name)))
+ (if (boundp 'custom-enabled-themes)
+ (custom-set-variables `(custom-enabled-themes '(,name)))
+ (if (> emacs-major-version 23)
+ (load-theme name t)
+ (load-theme name))))
(progn
(require 'color-theme)
(color-theme-sanityinc-solarized--with-colors

0 comments on commit 13b8b49

Please sign in to comment.