summaryrefslogtreecommitdiffstats
path: root/mode-icons.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-12-05 00:52:04 +0100
committerGravatar Tom Willemsen2012-12-05 00:52:44 +0100
commit1bf87fee9a1eb7be226febda73c63bae2bb83764 (patch)
treef2e9d988e06eded5720ee8fdcb612266c926f7d8 /mode-icons.el
parent5e0c221d583f742144a32ef0694a9d818114bbab (diff)
downloadmode-icons-1bf87fee9a1eb7be226febda73c63bae2bb83764.tar.gz
mode-icons-1bf87fee9a1eb7be226febda73c63bae2bb83764.zip
Add autoload cookie, remove hook
The hook should be set in the user's init file, not in the source file.
Diffstat (limited to 'mode-icons.el')
-rw-r--r--mode-icons.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/mode-icons.el b/mode-icons.el
index dec1a4a..d79d5e4 100644
--- a/mode-icons.el
+++ b/mode-icons.el
@@ -59,10 +59,9 @@
(when icon-spec
(setq mode-name (propertize mode 'display (cdr icon-spec))))))
+;;;###autoload
(defun set-current-mode-icon ()
(set-mode-icon mode-name))
-(add-hook 'after-change-major-mode-hook 'set-current-mode-icon)
-
(provide 'mode-icons)
;;; mode-icons.el ends here