summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mode-icons.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/mode-icons.el b/mode-icons.el
index da85875..8807d52 100644
--- a/mode-icons.el
+++ b/mode-icons.el
@@ -91,7 +91,9 @@ ICON-SPEC should be a specification from `mode-icons'."
"Replace the name of the current major mode with an icon."
:global t
(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)))
(provide 'mode-icons)