mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-11-25 11:00:29 +01:00
Run set-current-mode-icon when starting
Otherwise the currently visited buffer will not have the correct mode icon set.
This commit is contained in:
parent
4252201783
commit
2aef75d781
1 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,9 @@ ICON-SPEC should be a specification from `mode-icons'."
|
||||||
"Replace the name of the current major mode with an icon."
|
"Replace the name of the current major mode with an icon."
|
||||||
:global t
|
:global t
|
||||||
(if mode-icons-mode
|
(if mode-icons-mode
|
||||||
(add-hook 'after-change-major-mode-hook 'set-current-mode-icon)
|
(progn
|
||||||
|
(add-hook 'after-change-major-mode-hook 'set-current-mode-icon)
|
||||||
|
(set-current-mode-icon))
|
||||||
(remove-hook 'after-change-major-mode-hook 'set-current-mode-icon)))
|
(remove-hook 'after-change-major-mode-hook 'set-current-mode-icon)))
|
||||||
|
|
||||||
(provide 'mode-icons)
|
(provide 'mode-icons)
|
||||||
|
|
Loading…
Reference in a new issue