From 2619f9c807ad7abdaa688d29c16dc3029dfb3fbf Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Wed, 16 Feb 2022 18:05:56 +0100 Subject: [PATCH] Add jupyter org-mode support --- init.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/init.el b/init.el index 770fd22..abc7c90 100644 --- a/init.el +++ b/init.el @@ -327,6 +327,13 @@ (use-package pyvenv :straight t) +(use-package jupyter + :straight t + :config + ;; https://github.com/nnicandro/emacs-jupyter/issues/380#issuecomment-1014026589 + (defun jupyter-ansi-color-apply-on-region (begin end) + (ansi-color-apply-on-region begin end t))) + (use-package julia-mode :straight t) @@ -641,6 +648,7 @@ '((R . t) (emacs-lisp . t) (python . t) + (jupyter . t) (awk . t) (C . t) (ditaa . t) @@ -651,6 +659,8 @@ (shell . t))) (setq org-confirm-babel-evaluate nil) + (add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images) + (setq org-src-preserve-indentation nil org-edit-src-content-indentation 0) (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5)))