mirror of
https://github.com/ryuslash/mode-icons.git
synced 2024-11-21 17:40:30 +01:00
Show icons instead of mode names
Tom Willemse
68fa015bf7
- 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. |
||
---|---|---|
icons | ||
scripts | ||
.gitignore | ||
Makefile | ||
mode-icons.el | ||
README.md |
Mode-icons
Show icons instead of mode names in emacs.
Modes that have icons instead of names now:
- Emacs-Lisp
- Python
- Scheme
- Lisp
- PHP
- HTML
Installation
To install use either method:
package.el
If you have Emacs 24 or package.el
installed manually you can just create the tar file and use
package-install-file
to install it.
Create the tar file
Use make dist
to create the tar file needed for package.el
.
manually
Place mode-icons.el
somewhere in your load-path
and copy the
icons/
directory there as well. Then require
mode-icons
in your
Emacs init file.