2014-10-05 04:29:43 +00:00
|
|
|
# syl20bnr contribution layer for Spacemacs
|
2014-09-26 02:14:02 +00:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2014-10-05 04:29:43 +00:00
|
|
|
To use this contribution add it to your `~/.spacemacs`
|
2014-09-26 02:14:02 +00:00
|
|
|
|
|
|
|
```elisp
|
|
|
|
(defvar dotspacemacs-configuration-layers '(syl20bnr)
|
|
|
|
"List of contribution to load."
|
|
|
|
)
|
|
|
|
```
|
|
|
|
|
2014-10-05 03:20:09 +00:00
|
|
|
## Rainbow Identifiers
|
2014-09-26 02:14:02 +00:00
|
|
|
|
2014-10-05 04:29:43 +00:00
|
|
|
Instead of colorized keywords, this contribution has *colorized variables and
|
|
|
|
functions* using the [rainbow identifiers][rainbow-identifiers] mode. Each
|
|
|
|
variable and function has a unique color associated to it.
|
2014-09-26 02:14:02 +00:00
|
|
|
|
2014-10-22 15:49:10 +00:00
|
|
|
`rainbow-identifiers` mode can be toggled on and off with:
|
|
|
|
|
|
|
|
<SPC> t c
|
|
|
|
|
2014-09-28 05:27:26 +00:00
|
|
|
The `saturation` and `lightness` of identifier colors can be adjusted with the
|
|
|
|
commands:
|
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
--------------|------------------------------------------------------------
|
2014-10-02 04:17:35 +00:00
|
|
|
`<SPC> c s` | initiate change `saturation` mini-mode
|
|
|
|
`<SPC> c 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
|
2014-09-28 05:27:26 +00:00
|
|
|
|
2014-09-26 02:14:02 +00:00
|
|
|
### Screenshots
|
|
|
|
|
|
|
|
#### Python
|
|
|
|
|
2014-11-30 03:08:28 +00:00
|
|
|
![theme_tweaks_python](https://raw.githubusercontent.com/syl20bnr/spacemacs/master/contrib/usr/syl20bnr/doc/theme-tweaks-python.png)
|
2014-09-26 02:14:02 +00:00
|
|
|
|
|
|
|
[rainbow-identifiers]: https://github.com/Fanael/rainbow-identifiers
|