fix startup crash if powerline is excluded

This prohibits a crash when powerline is excluded in dotspacemacs-additional-packages
This commit is contained in:
Johannes Goslar 2016-06-09 10:30:44 +02:00
parent 022ce991de
commit bdb49476a8

View file

@ -100,8 +100,9 @@
(defun spacemacs/customize-powerline-faces ()
"Alter powerline face to make them work with more themes."
(set-face-attribute 'powerline-inactive2 nil
:inherit 'font-lock-comment-face))
(when (boundp 'powerline-inactive2)
(set-face-attribute 'powerline-inactive2 nil
:inherit 'font-lock-comment-face)))
(defun spacemacs//evil-state-face ()
(let ((state (if (eq 'operator evil-state) evil-previous-state evil-state)))