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
1 changed files with 2 additions and 1 deletions

View File

@ -239,7 +239,8 @@ THEME."
(package-activate pkg-name))))
(when disable
(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)
(eval `(spacemacs|do-after-display-system-init
(load-theme ',theme-name t))))