2022-03-28 15:03:21 +02:00
|
|
|
#+title: :tools rgb
|
|
|
|
#+subtitle: Creating color strings
|
|
|
|
#+created: May 06, 2020
|
|
|
|
#+since: 21.12.0
|
2021-10-16 01:29:27 +02:00
|
|
|
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
*This module is deprecated.* The module is too trivial to warrant a module.
|
2021-10-16 01:29:27 +02:00
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
* Description :unfold:
|
2020-05-08 03:13:01 +03:00
|
|
|
Highlights color hex values and names with the color itself, and provides tools
|
|
|
|
to easily modify color values or formats.
|
|
|
|
|
|
|
|
** Maintainers
|
2021-10-16 01:29:27 +02:00
|
|
|
/This module has no dedicated maintainers./ [[doom-contrib-maintainer:][Become a maintainer?]]
|
2020-05-08 03:13:01 +03:00
|
|
|
|
2021-10-16 01:29:27 +02:00
|
|
|
** Module flags
|
|
|
|
/This module has no flags./
|
2020-05-08 03:13:01 +03:00
|
|
|
|
2021-10-16 01:29:27 +02:00
|
|
|
** Packages
|
2022-09-26 02:19:42 +08:00
|
|
|
- [[doom-package:kurecolor]]
|
|
|
|
- [[doom-package:rainbow-mode]]
|
2020-05-08 03:13:01 +03:00
|
|
|
|
2021-10-16 01:29:27 +02:00
|
|
|
** Hacks
|
|
|
|
/No hacks documented for this module./
|
2020-05-08 03:13:01 +03:00
|
|
|
|
2021-10-16 01:29:27 +02:00
|
|
|
* Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
|
|
|
|
|
|
|
/This module has no external requirements./
|
|
|
|
|
|
|
|
* Usage
|
2020-05-08 03:13:01 +03:00
|
|
|
=rainbow-mode= provides automatic highlighting to hex color codes, and in
|
|
|
|
relevant modes, color names (e.g. html color names in =css-mode= or LaTeX color
|
|
|
|
names in =latex-mode=)
|
|
|
|
|
|
|
|
=kurecolor= provides commands to easily change the brightness, saturation, and
|
|
|
|
hue of hex colors (and a useful hydra for this, if =:ui hydra= is enabled), as
|
|
|
|
well as conversion between hex and css colors
|
|
|
|
|
|
|
|
* Configuration
|
2021-10-16 01:29:27 +02:00
|
|
|
=hl-line-mode= overrides the color highlighting of =rainbow-mode=, limiting the
|
|
|
|
use of that plugin and on-site color changes using =kurecolor=. To automatically
|
|
|
|
disable it only when =rainbow-mode= is active, you can add the following hook:
|
2020-05-08 03:13:01 +03:00
|
|
|
|
2021-10-16 01:29:27 +02:00
|
|
|
#+begin_src emacs-lisp
|
|
|
|
;; in $DOOMDIR/config.el
|
2020-05-08 03:13:01 +03:00
|
|
|
(add-hook! 'rainbow-mode-hook
|
|
|
|
(hl-line-mode (if rainbow-mode -1 +1)))
|
2021-10-16 01:29:27 +02:00
|
|
|
#+end_src
|
|
|
|
|
|
|
|
* Troubleshooting
|
|
|
|
/There are no known problems with this module./ [[doom-report:][Report one?]]
|
|
|
|
|
|
|
|
* Frequently asked questions
|
|
|
|
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
|
|
|
|
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
2023-09-16 20:19:11 +02:00
|
|
|
This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
2021-10-16 01:29:27 +02:00
|
|
|
#+end_quote
|