colorful-mode icon indicating copy to clipboard operation
colorful-mode copied to clipboard

Handle rgb(...) and rgba(...) outside of only CSS

Open arthsmn opened this issue 1 year ago • 1 comments

I use hyprlock, and it uses these functions. I'm currently configuring it through nix so I think just adding it to specific languages wouldn't solve the issue.

arthsmn avatar Jul 08 '24 22:07 arthsmn

You are looking for support of rgb(..) and rgba(...) outside of css related modes? 🤔 I think this feature is interesting but a bit out of scope?

jcs090218 avatar Sep 12 '24 06:09 jcs090218

rgb() and rgba() can be used outside of css (and derived). To enable it in your hyprlock config you can use this snippet in your emacs config:

(add-to-list 'colorful-extra-color-keyword-functions
             '(conf-unix-mode . colorful-add-rgb-colors))

(add-hook 'conf-unix-mode-hook #'colorful-mode)
;; or
(use-package colorful 
  :hook (conf-unix-mode . colorful-mode))

DevelopmentCool2449 avatar Feb 06 '25 21:02 DevelopmentCool2449