From 1bf87fee9a1eb7be226febda73c63bae2bb83764 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 5 Dec 2012 00:52:04 +0100 Subject: [PATCH] Add autoload cookie, remove hook The hook should be set in the user's init file, not in the source file. --- mode-icons.el | 3 +-- 1 file changed, 1 insertion(+), 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