mode-icons/README.org

68 lines
3.2 KiB
Org Mode
Raw Normal View History

2015-12-21 11:26:39 +01:00
#+TITLE: mode-icons
#+DATE: Monday, Dec 21 2015
#+STARTUP: content
2013-06-02 14:14:58 +02:00
2015-12-21 11:26:39 +01:00
Show icons instead of mode names in emacs.
2013-06-02 14:14:58 +02:00
2015-12-21 11:26:39 +01:00
[[https://raw.githubusercontent.com/rhoit/mode-icons/dump/screenshots/screenshot01.png]]
2013-06-02 14:14:58 +02:00
2016-02-21 14:54:15 +01:00
Some of the modes that have icons instead of names now:
2013-06-02 14:14:58 +02:00
2015-12-22 04:17:09 +01:00
| Modes | icon |
|------------+--------------------------------------------------------------------------|
2015-12-23 11:06:49 +01:00
| Coffee | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/coffee.png]] |
2015-12-22 04:17:09 +01:00
| CSS | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/css.png]] |
| Emacs-Lisp | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/emacs.png]] |
2015-12-23 11:06:49 +01:00
| Haml | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/haml.png]] |
2015-12-22 04:17:09 +01:00
| HTML | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/html.png]] |
| JS | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/js.png]] |
| Lisp | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/cl.png]] |
| Org-mode | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/org.png]] |
| PHP | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/php.png]] |
| Python | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/python.png]] |
2015-12-23 11:06:49 +01:00
| Ruby | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/ruby.png]] |
2015-12-22 04:17:09 +01:00
| SVG | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/svg.png]] |
2015-12-23 11:06:49 +01:00
| Sass | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/sass.png]] |
2015-12-22 04:17:09 +01:00
| Scheme | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/scheme.png]] |
| Shell | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/bash.png]] |
2015-12-23 11:06:49 +01:00
| Slim | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/slim.png]] |
| YAML | [[https://raw.githubusercontent.com/rhoit/mode-icons/dump/icons/yaml.png]] |
2015-12-22 04:17:09 +01:00
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:
#+BEGIN_SRC emacs-lisp
(setq mode-icons-change-mode-name nil)
#+END_SRC
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.
2016-02-21 14:54:15 +01:00
* Requirements
2015-12-22 04:17:09 +01:00
2016-02-21 14:54:15 +01:00
As of version 0.3.0 you can also use icons from some icon fonts,
specifically:
- [[http://fontawesome.io/][Font Awesome]]
- [[https://octicons.github.com/][GitHub Octicons]]
- [[http://fizzed.com/oss/font-mfizz][Font Mfizz]]
- [[https://icomoon.io/#icons-icomoon][IcoMoon]]
2016-02-21 14:54:15 +01:00
You need to have installed these on your system in order to use
these fonts, mode-icons will not do this for you.
2013-06-02 14:14:58 +02:00
2015-12-21 11:26:39 +01:00
* Installation
** manually
2013-06-02 14:14:58 +02:00
2015-12-21 11:26:39 +01:00
Place ~mode-icons.el~ somewhere in your =load-path= and copy the
~icons/~ directory there as well. Then =require= ~mode-icons~ in your
[[http://gnu.org/software/emacs][Emacs]] init file.
2013-06-02 14:14:58 +02:00
2015-12-21 11:26:39 +01:00
* Usage
2013-06-02 14:14:58 +02:00
2015-12-21 11:26:39 +01:00
Once installed you can add =(mode-icons-mode)= to your init file.