mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-12-26 06:28:04 +01:00
Add autoload cookie, remove hook
The hook should be set in the user's init file, not in the source file.
This commit is contained in:
parent
5e0c221d58
commit
1bf87fee9a
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue