mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-11-21 17:40:30 +01:00
Update icons after executing a command.
There should be no lag when activating a minor mode.
This commit is contained in:
parent
fcbc6b47bc
commit
4a089aa41d
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue