(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:
- install
rainbow-delimiters
(use-package rainbow-delimiters
:ensure t
:config
(add-hook 'lisp-interaction-mode-hook #'rainbow-delimiters-mode)
)
- switch to
*scratch*
buffer, the major-mode islisp-interaction-mode
- insert
(insert-image (find-image '((:type png :file "splash.png"))))
and useC-x C-e
, a image will show - if you change
(add-hook 'lisp-interaction-mode-hook #'rainbow-delimiters-mode)
to(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
, and restart emacs - switch to
*scratch*
buffer, the major-mode islisp-interaction-mode
- insert
(insert-image (find-image '((:type png :file "splash.png"))))
and useC-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. 👍 💯