Commit graph

8 commits

Author SHA1 Message Date
4252201783 Fix auto load
`mode-icons-mode' is now the main entry point for mode-icons, not
`set-current-mode-icon'.
2013-06-02 14:27:32 +02:00
1e8fcc4982 Add minor-mode
The `mode-icons-mode' minor-mode enables/disables the setting of icons
for each mode.
2013-06-02 14:09:49 +02:00
68fa015bf7 Cleanup code
- Enable `lexical-binding'.

- Remove `mode-icons--load-file-name' and add `mode-icons--directory'.
  The directory is what is needed and when developing inside Emacs the
  `load-file-name' variable isn't available. So now this variable
  defaults to `default-directory' when being evaluated in a buffer.

- Add/improve docstrings.

- Simplify `mode-icons'. Don't specify the entire image specification,
  but just enough for the rest of the code to figure out how to create
  this specification. `get-icon-display' is then used to create the
  image specification.

- Shorten the `set-mode-icon' function.
2013-06-02 13:56:07 +02:00
efefc5ee58 Add icon for org-mode 2013-03-23 15:19:50 +01:00
1bf87fee9a Add autoload cookie, remove hook
The hook should be set in the user's init file, not in the source
file.
2012-12-05 00:52:44 +01:00
96c183a279 Add version header 2012-11-10 23:21:46 +01:00
38f80a3890 Add icons and load them from here 2012-11-10 23:17:42 +01:00
1f62fb182c Initial commit 2012-11-10 23:12:36 +01:00