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

Config in different modes

Open fol9000 opened this issue 1 year ago • 2 comments

Hello,

with the following configuration colorful-mode displays the values correctly with a colored prefix in Lisp mode (e.g.init.el) but not in a scss file (scss-mode, https://github.com/antonj/scss-mode). In scss-mode colorful-mode is active but color values are shown with a colored background not with a prefix. Is it a bug or is sth wrong with my config? Adding scss-mode to the hook modes doesn't change anything.

(use-package colorful-mode
  :ensure t
  :init
  (setq colorful-use-prefix t
        colorful-prefix-string "â—Ź")
  :hook (prog-mode text-mode))

fol9000 avatar Aug 05 '24 20:08 fol9000

I cannot reproduce this. It works on my end. 🤔

jcs090218 avatar Aug 06 '24 02:08 jcs090218

I think I found the problem: I checked rainbow-mode: same problem. But: scss-mode derives from css-mode which also has a feature to colorize the background of color values. So I switched off css-mode's colorize feature with M-x customize-option css-fontify-colors and now rainbow-mode as well as colorful-mode work for me in (s)css also. Maybe a small hint in the README file can help others who also experience this kind of problem...

fol9000 avatar Aug 07 '24 20:08 fol9000

There was already a warning in the README file, now it is more visible. I'm closing this issue.

DevelopmentCool2449 avatar Feb 06 '25 18:02 DevelopmentCool2449