9d2d20f2c3
Also add option mode-icons-change-mode-name to suppress changing the actual mode-name and just displaying the icons. |
||
---|---|---|
icons | ||
scripts | ||
.gitignore | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
Makefile | ||
mode-icons.el | ||
README.org |
mode-icons
Show icons instead of mode names in emacs.
Some of the modes that have icons instead of names now:
Modes | icon |
---|---|
Coffee | |
CSS | |
Emacs-Lisp | |
Haml | |
HTML | |
JS | |
Lisp | |
Org-mode | |
PHP | |
Python | |
Ruby | |
SVG | |
Sass | |
Scheme | |
Shell | |
Slim | |
YAML |
When looking at buffers with commands like ibuffer
, they display the
icons for the mode names as well. If you don't like this behavior you
can change mode-icons-change-mode-name
to be nil:
(setq mode-icons-change-mode-name nil)
This only displays the icon in the plain emacs mode-line.
This may not work with enhanced mode-lines like poweline
or
smart-mode-line
, sicne they typically look at the mode-name
variable.
Requirements
As of version 0.3.0 you can also use icons from some icon fonts, specifically:
You need to have installed these on your system in order to use these fonts, mode-icons will not do this for you.
Installation
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.
Usage
Once installed you can add (mode-icons-mode)
to your init file.