mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-11-21 17:40:30 +01:00
Reset twice, once to ensure the minor mode is reset
This commit is contained in:
parent
2812f30418
commit
a059182cf3
1 changed files with 2 additions and 0 deletions
|
@ -1678,6 +1678,8 @@ When ENABLE is non-nil, enable the changes to the mode line."
|
||||||
(defun mode-icons-reset ()
|
(defun mode-icons-reset ()
|
||||||
"Reset mode-icons icons."
|
"Reset mode-icons icons."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(mode-icons-reset-now)
|
||||||
|
;; Run twice, in case the mode turns on some minor-modes
|
||||||
(run-with-idle-timer 0.1 nil #'mode-icons-reset-now))
|
(run-with-idle-timer 0.1 nil #'mode-icons-reset-now))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue