Fanael/rainbow-delimiters

(add-hook 'prog-mode-hook #'rainbow-delimiters-mode) bug??

Closed this issue · 2 comments

when use (add-hook 'prog-mode-hook #'rainbow-delimiters-mode) will break image.
example:

  1. install rainbow-delimiters
(use-package rainbow-delimiters
  :ensure t
  :config
  (add-hook 'lisp-interaction-mode-hook #'rainbow-delimiters-mode)
  )
  1. switch to *scratch* buffer, the major-mode is lisp-interaction-mode
  2. insert (insert-image (find-image '((:type png :file "splash.png")))) and use C-x C-e, a image will show
  3. if you change (add-hook 'lisp-interaction-mode-hook #'rainbow-delimiters-mode) to (add-hook 'prog-mode-hook #'rainbow-delimiters-mode) , and restart emacs
  4. switch to *scratch* buffer, the major-mode is lisp-interaction-mode
  5. insert (insert-image (find-image '((:type png :file "splash.png")))) and use C-x C-e, the image break, don't show

in other prog-mode, like emacs-lisp , lisp-mode, c-mode, get the same thing, the image don't show.

is a bug?

I cannot reproduce the problem locally, either with my usual config or under emacs -Q. Does the problem occur for you if you use a minimal configuration file that only sets up rainbow-delimiters and nothing else? If not, it's likely a different package that breaks image display, with rainbow-delimiters only being caught in the crossfire.

Ok, thanks. I will check other packages.

Find, the package highlight-indent-guides should be loaded after package rainbow-delimiters when the package rainbow-delimiters use the config (add-hook 'prog-mode-hook #'rainbow-delimiters-mode).

Nice package, thank you. 👍 💯