airline-themes
This is a port of the themes in vim-airline to emacs powerline.
Features
- Separate colors for each major evil mode (normal, insert, visual, replace, emacs)
- Can set Helm colors
- Can set the current cursor color based on the current airline theme
- Works nicely in the gui or terminal
Eshell Colors
Here is a shot of eshell in use with the prompt set to match the current airline theme (airline-base16-shell-dark):
Helm Colors
Here is a shot of helm-mini with the airline-base16-shell-dark and
airline-papercolor themes.
Installation
Requirements
powerlineevil(optional but recommended)
Install via melpa or clone this repo into your load-path and add the following
to your init.el
(require 'airline-themes)
(load-theme 'airline-light)
If you don't load a theme in your init.el then the default mode-line-format
doesn't get set at startup and applying a theme may not look right. If things
don't look right after applying a theme run airline-themes-set-modeline or
(kill-local-variable 'mode-line-format)) and it should apply the styling to
the current buffer.
Custom Options
-
airline-helm-colorsSet helm colors to match the airline theme.
Valid Values: Enabled, Disabled
Default: Enabled -
airline-cursor-colorsSet the cursor color based on the current evil state.
Valid Values: Enabled, Disabled
Default: Enabled -
airline-display-directoryDisplay the currend directory along with the filename.
Valid Values: Full, Shortened, Disabled
Default: Shortened -
airline-shortened-directory-lengthSet the desired directory length.
Default: 30 -
airline-eshell-colorsSet eshell prompt colors to match the airline theme.
Valid Values: Enabled, Disabled
Default: Enabled -
Glyph Variables
These variables control which UTF glyphs are used on the modeline. They require a powerline patched font. Head over to https://github.com/powerline/fonts if you need one.
Depending on your font, you may need to set the correct glyph character. Here are the ones used by airline themes. The default characters are in the vim-powerline column.
| Variable Name | powerline | vim-powerline (default) | |--------------------------------------+-------------+-------------------------| | airline-utf-glyph-separator-left | '' #xe0b0 | '⮀' #x2b80 | | airline-utf-glyph-separator-right | '' #xe0b2 | '⮂' #x2b82 | | airline-utf-glyph-subseparator-left | '' #xe0b1 | '⮁' #x2b81 | | airline-utf-glyph-subseparator-right | '' #xe0b3 | '⮃' #x2b83 | | airline-utf-glyph-branch | '' #xe0a0 | '⭠' #x2b60 | | airline-utf-glyph-readonly | '' #xe0a2 | '⭤' #x2b64 | | airline-utf-glyph-linenumber | '' #xe0a1 | '⭡' #x2b61 |If your font characters don't look right try setting them to the powerline utf glyphs by adding this to your init.el:
(setq powerline-utf-8-separator-left #xe0b0 powerline-utf-8-separator-right #xe0b2 airline-utf-glyph-separator-left #xe0b0 airline-utf-glyph-separator-right #xe0b2 airline-utf-glyph-subseparator-left #xe0b1 airline-utf-glyph-subseparator-right #xe0b3 airline-utf-glyph-branch #xe0a0 airline-utf-glyph-readonly #xe0a2 airline-utf-glyph-linenumber #xe0a1)


