Commit graph

29 commits

Author SHA1 Message Date
duianto
2702b205b6 Update colors layer readme: rainbow-mode screenshot
Problem:
The current rainbow-mode screenshot, is from an older version. It shows white
text on light colors. This makes it hard to read the color codes. The old
screenshot hides the fact that issue has been solved.

Solution:
This updates the screenshot, to show it's current behaviour. Where the text
color is either white or black, depending on if the luminance is greater than
0.5 of 1.0.
2017-05-25 13:07:40 +02:00
Eivind Fonn
b02384520e No underscores in lisp!!! 2017-05-24 10:18:19 +02:00
SteveJobzniak
9a0cf70f7b Colors: Minor tweaks to per-theme defaults
Very slight tweaks to make the per-theme defaults even better.
2017-05-24 10:17: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
bcc1889cf7 Colors: Tuned defaults to work w. majority of light & dark themes
Most people won't take the time to write their own per-theme colors,
so having high-quality defaults matters more than anything else.

These defaults are carefully balanced statistical averages of all colors
suitable for both light and dark themes, and perfected to work for 90% of
all themes.

It's the BEST out-of-the-box experience we can offer without forcing
all users to write their own individual per-theme optimizations
for ALL of their themes...
2017-05-24 10:16:08 +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
22749ced59 Colors: Extended built-in theme list, and added better defaults
Added support for 9 new themes, and updated the defaults
for some old definitions to much more closely match the "spirit"
of each theme's individual intended brightness
and saturation level.
2017-05-24 10:13:58 +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
SteveJobzniak
079a60b8af Colors: Rewriting of documentation to fix errors and clarify usage 2017-05-24 10:12:33 +02:00
SteveJobzniak
fbd29b1b3b Colors: Corrected keybindings in documentation 2017-05-24 10:09:50 +02:00
JAremko
46cbe18745 remove ^M from nyan README.org 2017-05-22 18:35:37 +03:00
JAremko
6c5a0b2b14 update docs to the new toc-org format 2017-05-22 18:35:37 +03:00
JAremko
c1e4556882 Format and cleanup docs. Fix links. 2017-04-28 23:29:14 -04:00
Josh Santos
c82661fe26 Fix readme for GUI only nyan-mode 2017-04-17 22:35:02 -04:00
syl20bnr
fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
eduardo apolinario
02da004026
fix typo packges -> packages 2016-09-23 10:50:46 +03: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
ralesi
49fc0d533d Color identifiers mode 2016-06-03 22:29:30 -04:00
syl20bnr
abc9912860 Colors: minor README modification 2016-06-03 22:27:48 -04:00
Curtis Mackie
edd7a501c8 Allow user to enable rainbow-identifiers-mode without making it default
Per syl20bnr's comment on PR 6192, the package should always be
installed with the colors layer, but only hooked into prog-mode when the
variable is active. Renamed the variable
colors-enable-rainbow-identifiers-by-default to clarify this, and
modified the documentation.
2016-06-03 22:24:59 -04:00
Eivind Fonn
62fc64f745 core: special toggle API for minor modes 2016-05-31 22:33:44 -04:00
syl20bnr
07852abad5 Format documenation files with doc-fmt tool 2016-04-12 23:31:38 -04:00
Robert Johnson
16e1be2691 Fix inconsistent notation of SPC key in docs
Replace all occurrences of <SPC> in org files with SPC.

Fixes syl20bnr/spacemacs#1823
2016-04-05 12:46:10 +02:00
syl20bnr
173e2a5421 Move all prefix names from config.el to init functions 2016-04-03 00:12:28 -04:00
syl20bnr
3b0c1fd93d Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
syl20bnr
9d0558992c layers directory: create new categories
+chat
+checkers
+emacs
+intl
+os
+pair-programming
+tags
+theme
+web-services
2016-03-23 21:39:43 -04:00