add advice to reset powerline when changing themes

This commit is contained in:
Ivan Malison 2015-08-29 15:25:54 -07:00
parent 9623b3538e
commit d1d2e616f1

View File

@ -2109,6 +2109,15 @@ window is active in the perspective."
(setq left-margin-width 0) (setq left-margin-width 0)
(defvar-setq hl-line-mode nil)) (defvar-setq hl-line-mode nil))
(when t
(if (emacs24_4-p)
(advice-add 'load-theme :after #'(lambda (&rest args)
(when (fboundp 'powerline-reset)
(powerline-reset))))
(defadvice load-theme (after name activate)
(when (fboundp 'powerline-reset)
(powerline-reset)))))
(when (file-exists-p custom-after-file) (load custom-after-file)) (when (file-exists-p custom-after-file) (load custom-after-file))
(defun imalison:appearance (&optional frame) (defun imalison:appearance (&optional frame)