Autoload defhydras & use new naming convention

Phasing out the +module@name convention for plain old
+module-name-hydra, which is more compatible with elisp reflection tools
like describe-function and such.

Also, Emacs starts up faster now. Tee hee.
This commit is contained in:
Henrik Lissner 2018-06-26 01:42:35 +02:00
parent 3134df8f43
commit 017ba8d79c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
10 changed files with 178 additions and 181 deletions

View file

@ -0,0 +1,13 @@
;;; tools/rgb/autoload.el -*- lexical-binding: t; -*-
;;;###autoload (autoload '+rgb-kurecolor-hydra/body "tools/rgb/autoload" nil nil)
(defhydra +rgb-kurecolor-hydra (: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

@ -1,19 +0,0 @@
;;; 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)))