Commit graph

10 commits

Author SHA1 Message Date
syl20bnr 326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
Eivind Fonn b02384520e No underscores in lisp!!! 2017-05-24 10:18:19 +02:00
SteveJobzniak 49458314fe Colors: Better way of adding/refreshing themes
The old, verbose method of manipulating a list felt very hacky.

This is much slicker.
2017-05-24 10:17:09 +02:00
SteveJobzniak 7d927282ba Colors: Faster method of redrawing buffer for transient state
Switching this to a more correct way of redrawing the buffer contents.
2017-05-24 10:15:25 +02:00
SteveJobzniak add05f69ef Colors: Major fix to actually render per-theme settings on switch
It isn't enough to just update the variables! We must also refresh the "font
locking" (syntax highlighting) in all buffers that have rainbow-identifiers-mode
currently active, so that they instantly re-paint with their per-theme values.
Otherwise we get stuck with an ugly mishmash of old colors and a new theme.

This change loops through all buffers and marks matching ones for re-painting,
starting with the current buffer first so that the user sees quick results!
2017-05-24 10:14:59 +02:00
SteveJobzniak a6b1da5624 Colors: Improved resetting of rainbow-identifiers transient-state
Now reverts lightness and saturation to the user's fallback defaults.

A suggested future improvement: Revert to whatever would be used
for the current theme, so that it is a true "reset". Such a change
would require decoupling the sat&light code in "colors//tweak-theme-colors".
2017-05-24 10:13:36 +02:00
SteveJobzniak 7bff2fddad Colors: Add ability to set default rainbow-identifiers values 2017-05-24 10:13:15 +02:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
ksjogo dd5836d948 rainbow-identifiers: do not overwrite theme values 2016-06-09 22:58:31 -04:00
syl20bnr dde9eef487 colors: remove colors-enable-rainbow-identifiers and new layer variable colors-colorize-identifiers
You have to replace in your dotfile the layer variable
colors-enable-rainbow-identifiers t
by
colors-colorize-identifiers 'all

color-colorize-identifiers can take 3 values:
- variables -> colorize only variables via color-identifiers mode
- all -> colorize all identifiers
- nil -> no colorisation

New key bindings:

SPC t C a -> colorize all
SPC t C C-a -> colorize all globally

SPC t C v -> colorize variables
SPC t C C-v -> colorize variables globally
2016-06-03 23:29:59 -04:00