vim-airline themes for emacs powerline
Emacs Lisp
Switch branches/tags
Latest commit 0c0f8ef Jul 20, 2017 @AnthonyDiGirolamo committed on GitHub Create LICENSE.md
Permalink
Failed to load latest commit information.
screenshots add airline-doom-theme screenshots Jun 23, 2017
LICENSE.md Create LICENSE.md Jul 20, 2017
README.md version bump to 1.6 Sep 27, 2016
airline-badwolf-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-base16-gui-dark-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-base16-gui-light-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-base16-shell-dark-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-behelit-theme.el small change to emacs state for airline-behlit theme May 1, 2017
airline-cool-theme.el better cursor colors for airline-cool Oct 3, 2016
airline-dark-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-distinguished-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-doom-molokai-theme.el update airline-doom-one-theme, add airline-doom-molokai-theme Jun 23, 2017
airline-doom-one-theme.el update airline-doom-one-theme, add airline-doom-molokai-theme Jun 23, 2017
airline-durant-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-hybridline-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-kalisi-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-kolor-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-light-theme.el update airline-light theme with better emacs and inactive colors Apr 25, 2017
airline-luna-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-molokai-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-murmur-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-papercolor-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-powerlineish-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-raven-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-serene-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-silver-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-simple-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-sol-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-solarized-alternate-gui-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-solarized-gui-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-themes.el eshell prompt git branch - use magit if possible, ignore tramp /ssh: … Oct 24, 2016
airline-ubaryd-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-understated-theme.el update all themes to work with the extra colors Sep 27, 2016
airline-wombat-theme.el update all themes to work with the extra colors Sep 27, 2016

README.md

airline-themes

MELPA

MELPA

This is a port of the themes in vim-airline to emacs powerline.

airline-demo.gif

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):

airline-eshell-screen1.png

Helm Colors

Here is a shot of helm-mini with the airline-base16-shell-dark and airline-papercolor themes.

airline-helm-demo.gif

Installation

Requirements

  • powerline
  • evil (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-colors Set helm colors to match the airline theme.
    Valid Values: Enabled, Disabled
    Default: Enabled

  • airline-cursor-colors Set the cursor color based on the current evil state.
    Valid Values: Enabled, Disabled
    Default: Enabled

  • airline-display-directory Display the currend directory along with the filename.
    Valid Values: Full, Shortened, Disabled
    Default: Shortened

  • airline-shortened-directory-length Set the desired directory length.
    Default: 30

  • airline-eshell-colors Set 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)