Add: tools/rgb: initial commit (rainbow-mode + kurecolor)

This commit is contained in:
Benjamin Andresen 2017-07-16 14:57:32 +02:00
parent d6762bc893
commit 32bccfa857
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,26 @@
;;; tools/rgb/config.el -*- lexical-binding: t; -*-
;;
;; Plugins
;;
(def-package! rainbow-mode
:init
(add-hook 'prog-mode-hook #'rainbow-mode))
(def-package! kurecolor
:after rainbow-mode
:config
(when (featurep! :feature hydra)
(require 'hydra)
(defhydra hydra-kurecolor (:color pink
:hint nil)
"
Inc/Dec _w_/_W_ brightness _d_/_D_ saturation _e_/_E_ hue "
("w" kurecolor-decrease-brightness-by-step)
("W" kurecolor-increase-brightness-by-step)
("d" kurecolor-decrease-saturation-by-step)
("D" kurecolor-increase-saturation-by-step)
("e" kurecolor-decrease-hue-by-step)
("E" kurecolor-increase-hue-by-step)
("q" nil "cancel" :color blue))))

View file

@ -0,0 +1,5 @@
;; -*- no-byte-compile: t; -*-
;;; tools/rgb/packages.el
(package! rainbow-mode)
(package! kurecolor)