colorful-mode
colorful-mode copied to clipboard
Config in different modes
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))
I cannot reproduce this. It works on my end. 🤔
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...
There was already a warning in the README file, now it is more visible. I'm closing this issue.