Use delay-mode-hooks

* jupyter-mime (jupyter-get-fontify-buffer): Do it.
This commit is contained in:
Nathaniel Nicandro 2018-11-09 22:15:13 -06:00
parent 75a08c26d0
commit 959eb0b9b7

View file

@ -101,7 +101,7 @@ If no buffer for MODE exists, create a new one."
(setq buf (get-buffer-create
(format " *jupyter-repl-fontify[%s]*" mode)))
(with-current-buffer buf
(funcall mode))
(delay-mode-hooks (funcall mode)))
(setf (alist-get mode jupyter-fontify-buffers) buf))
buf))