forked from colonelpanic/dotfiles
add advice to reset powerline when changing themes
This commit is contained in:
parent
9623b3538e
commit
d1d2e616f1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user