Skip to content

Commit 47ad7f0

Browse files
jamieforthnnicandro
authored andcommitted
ob-jupyter.el: Delay org-babel-jupyter-make-local-aliases hook.
Ensuring this function is called after `jupyter-org-interaction-mode` in `org-mode-hook` to ensure correct fontification of errors (i.e. handling ansi-color escape characters).
1 parent 8b35409 commit 47ad7f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ob-jupyter.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ mapped to their appropriate minted language in
785785
(defun org-babel-jupyter-make-local-aliases ()
786786
(let ((default-directory user-emacs-directory))
787787
(org-babel-jupyter-aliases-from-kernelspecs)))
788-
(add-hook 'org-mode-hook #'org-babel-jupyter-make-local-aliases)
788+
(add-hook 'org-mode-hook #'org-babel-jupyter-make-local-aliases 10)
789789

790790
(add-hook 'org-export-before-processing-hook #'org-babel-jupyter-setup-export)
791791
(add-hook 'org-export-before-parsing-hook #'org-babel-jupyter-strip-ansi-escapes)

0 commit comments

Comments
 (0)