Skip to content

Commit

Permalink
ob-jupyter.el: Delay org-babel-jupyter-make-local-aliases hook.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
jamieforth authored and nnicandro committed Nov 26, 2023
1 parent 8b35409 commit 47ad7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ob-jupyter.el
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ mapped to their appropriate minted language in
(defun org-babel-jupyter-make-local-aliases ()
(let ((default-directory user-emacs-directory))
(org-babel-jupyter-aliases-from-kernelspecs)))
(add-hook 'org-mode-hook #'org-babel-jupyter-make-local-aliases)
(add-hook 'org-mode-hook #'org-babel-jupyter-make-local-aliases 10)

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

0 comments on commit 47ad7f0

Please sign in to comment.