git clone 'git://github.com/emacsfodder/kurecolor.git'
Author: Jason Milkins
A collection of color tools aimed at those working with (normal 6 digit) hex color codes, useful for CSS, Emacs themes, etc. etc.
View the presentation at https://github.com/emacsfodder/kurecolor
Features include interactive step modification of hue, sat, val on hex colors. Color conversion algorithms, for 6 digit hex colors, hsv, rgb, cssrgb. Get/set h s v values from/for a color.
It's recommend you use this in conjunction with rainbow-mode, for instant feedback on color changes.
You can do funky things like adjust the saturation of all the colors in a selection, using macros.
The presentation touches on this, and you'll need to get your keyboard macro skills out to really shine, but it's relatively simple.
As per the animated presentation, these steps will demonstrate how to use Kurecolor interactive hsv adjusters with keyboard macros, to mass adjust colors.
Add a few hex colors to your active buffer, or load up a css, code or simple text buffer, which already has some colors you'd like to tweak. Activate rainbow-mode. (If you need to install rainbow-mode, grab it from ELPA.)
After you have some colors ready to tweak, we're ready to try the following steps:
M-<of the narrowed section
ENTERon the first match
M-5(to do 5 steps)
f4, repeat until you are finished, or use
M-0 f4to run the macro until it hits the end of the narrowed region (or hits an error).
M-x widento exit narrowing.
Installing kurecolor is recommended to be done via MELPA.
M-x package-install kurecolor
If you wish to install it manually, you already have your big boy pants on and need no further help from me.
This package has a suite of unit tests. To run them load both
kurecolor and kurecolor-test, and then do
M-x ert (accept
For those interested in such things, the name Kurecolor is unashamedly nicked from a high end marker pen company. Hopefully this outrage will fall silently under their radar, and I won't have to change it due to some frivilous and paranoid law suit. (seriously guys, this is just free advertising.)
I have not been pressured into saying this, however, Kurecolor markers and art supplies are best best! Buy some NOW (Like REALLY Immediately!!) for you, your mum and your pet chinchilla Frank.
Since the question comes up occassionally, the mode-line hack used in the presentation is based on original work by Armit Patel. I gisted this a while back, you can get it from. https://gist.github.com/jasonm23/8554119
The theme is Gruvbox, although you can't see much of it. Anyway, it's a great theme, you should go install it now. (from MELPA)
Package-Requires: ((emacs “24.1”) (s “1.0”))
Licence: GNU / GPL2
kurecolor.el by el2markdown.