Update icons after executing a command.

There should be no lag when activating a minor mode.
This commit is contained in:
Matthew Fidler 2016-04-28 23:33:33 -05:00
parent fcbc6b47bc
commit 4a089aa41d

View file

@ -1718,6 +1718,10 @@ When ENABLE is non-nil, enable the changes to the mode line."
"Make `mode-icons' aware of icon."
(mode-icons-set-minor-mode-icon))
(defadvice command-execute (after mode-icons--reset-minor-mode-icons activate)
"Make `mode-icons' aware of any recenty activated minor modes."
(mode-icons-set-minor-mode-icon))
(eval-after-load 'powerline
'(progn
(declare-function mode-icons--real-powerline-minor-modes "powerline")