File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ See also the docstring of `org-image-actual-width' for more details."
141141 :group 'ob-jupyter
142142 :type 'boolean )
143143
144+ (defcustom jupyter-org-want-integration t
145+ " Whether to enable `jupyter-org-interaction-mode' automatically on `org-mode' buffers."
146+ :group 'ob-jupyter
147+ :type 'boolean )
148+
144149(defconst jupyter-org-mime-types '(:text/org
145150 ; ; Prioritize images over html
146151 :image/svg+xml :image/jpeg :image/png
@@ -945,7 +950,8 @@ C-x C-e `jupyter-eval-line-or-region'"
945950 (lambda (x ) (eq (car x) 'jupyter-org-font-lock-ansi-escapes ))
946951 org-font-lock-keywords))))
947952
948- (add-hook 'org-mode-hook 'jupyter-org-interaction-mode )
953+ (when jupyter-org-want-integration
954+ (add-hook 'org-mode-hook 'jupyter-org-interaction-mode ))
949955
950956; ;; Constructing org syntax trees
951957
You can’t perform that action at this time.
0 commit comments