Allow “default” theme to load properly

This commit is contained in:
Eivind Fonn 2017-06-16 09:30:32 +02:00
parent 37eed0af8f
commit c3d344cb8c

View file

@ -239,7 +239,8 @@ THEME."
(package-activate pkg-name)))) (package-activate pkg-name))))
(when disable (when disable
(mapc 'disable-theme custom-enabled-themes)) (mapc 'disable-theme custom-enabled-themes))
(load-theme theme-name t) (unless (eq 'default theme-name)
(load-theme theme-name t))
(unless (display-graphic-p) (unless (display-graphic-p)
(eval `(spacemacs|do-after-display-system-init (eval `(spacemacs|do-after-display-system-init
(load-theme ',theme-name t)))) (load-theme ',theme-name t))))