Commit graph

57 commits

Author SHA1 Message Date
Lucius Hu
70ba4dff62 colors: refactor
- Replaced `(when (not foo) bar)` with `(unless foo bar)`
2021-04-04 12:48:21 +02:00
syl20bnr
97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr
d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
Joe Balancio
679040fbfa [colors] Remove duplicate function
Removes a function that already exists in packages.el
2021-03-23 23:49:20 -04:00
JAremko
8227686194 Fix links 2020-10-03 21:52:09 +03:00
Robert O'Connor
82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
madand
e1ad035513 Improve rainbow-identifiers experience for Elisp and CL
Make rainbow-identifiers not colorize special operators and macros, so they
always visually stand out. Rationale behind this change is that special
operators and macros in Lisp may be considered "syntax" elements, so it makes
sense to have them visually distinguished at all times.
2020-01-20 11:37:20 +01:00
jaremko
247830ab40 fix links 2019-11-10 16:13:13 +02:00
duianto
3868a5364f [doc] Fix typos and add missing/remove extra ~
Add missing ~ (tilde) around key bindings.
Remove an extra ~.
2019-06-01 20:40:22 +02:00
JAremko
ce4e6e355f tag docs 2019-05-28 17:35:49 +03:00
emacspace
c7c348a676 documentation formatting: Sun May 26 20:58:52 UTC 2019 2019-05-27 01:23:35 +03:00
JAremko
5591943c32 fix links 2019-05-20 15:25:00 +03:00
Anton-Latukha
f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
JAremko
77c680160e Add placeholder tags 2019-05-05 20:40:47 +03:00
JAremko
5d02b1c4bb Add more tags 2019-05-03 03:44:19 +03:00
emacspace
202da65b1c documentation formatting: Sun Apr 21 20:04:25 UTC 2019 2019-04-22 23:16:20 +02:00
JAremko
23842fa77e Simplify descriptions of layers 2019-04-21 22:09:34 +03:00
emacspace
45276bd96f documentation formatting: Wed Dec 5 03:03:03 UTC 2018 2018-12-04 22:06:14 -05:00
JAremko
cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
JAremko
6946e255e6 Reformat docs 2018-07-20 02:45:21 +03:00
syl20bnr
4ddf464231 Lazy load color-identifiers-mode 2018-06-11 01:53:05 -04:00
JAremko
dd46fcac78
Fix 404 links. 2018-05-15 16:19:01 +03:00
syl20bnr
ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
syl20bnr
29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00
syl20bnr
326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
smile13241324
0e06bbafc4 Fix documentation for elisp, colour, ibuffer and windows-scripts 2017-10-02 03:01:54 +03:00
JAremko
06301b2212 Improve exporting/testing 2017-08-18 20:50:21 +03:00
JAremko
2ef230369a Convert new exporter into standalone tool 2017-08-02 09:16:23 +03:00
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