Now that we are loading package autoloads files (as part of the generated doom-package-autoload-file when running make autoloads), many :commands properties are redundant. In fact, many def-package! blocks are redundant. In some cases, we can do without a config.el file entirely, and can move into the autoloads file or rely entirely on package autoloads. Also, many settings have been moved in their module's autoloads files, which makes them available ASAP; their use no longer depends on module load order. This gained me a modest ~10% boost in startup speed.
19 lines
573 B
EmacsLisp
19 lines
573 B
EmacsLisp
;;; tools/rgb/config.el -*- lexical-binding: t; -*-
|
|
|
|
;;
|
|
;; Plugins
|
|
;;
|
|
|
|
(def-package! kurecolor
|
|
:after rainbow-mode
|
|
:config
|
|
(defhydra +rgb@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)))
|