spacemacs/contrib/colors
2015-01-24 00:24:49 -05:00
..
img Move rainbow packages to colors layer 2015-01-24 00:24:49 -05:00
config.el Update CONTRIBUTE.md and add file headers 2015-01-13 23:12:56 -05:00
packages.el Move rainbow packages to colors layer 2015-01-24 00:24:49 -05:00
README.md Move rainbow packages to colors layer 2015-01-24 00:24:49 -05:00

Colors contribution layer for Spacemacs

logo

Table of Contents

Description

This layer colors your life with:

rainbow identifiers mode will colorize each variables and functions with an almost unique color. The keywords and the declaration of function colors are disabled in order to make the colorized variables and functions stand out.

rainbow delimiters highlights delimiters such as parentheses, brackets or braces according to their depth.

rainbow mode displays strings representing colors with the color they represent as background.

Install

To use this contribution add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(colors)
  "List of contribution to load."
)

Key bindings

The prefix associated with colors is C.

Rainbow Identifiers

theme_tweaks_python

rainbow-identifiers mode can be toggled on and off with:

<SPC> t C i

Note that the toggle is local to the current buffer.

The saturation and lightness of identifier colors can be adjusted live with the micro-state:

Key Binding Description
<SPC> C i s initiate change saturation mini-mode
<SPC> C i l initiate change lightness mini-mode
+ increase the saturation or lightness
- decrease the saturation or lightness
= reset the saturation or lightness
Any other key leave the change mini-mode

Rainbow delimiters

rainbow-delimiters mode can be toggled on and off with:

<SPC> t C d

Note that the toggle is local to the current buffer.

Rainbow Mode

rainbow_mode

rainbow-mode mode can be toggled on and off with:

<SPC> t C c

Note that the toggle is local to the current buffer.