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."
141
141
:group 'ob-jupyter
142
142
:type 'boolean )
143
143
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
+
144
149
(defconst jupyter-org-mime-types '(:text/org
145
150
; ; Prioritize images over html
146
151
:image/svg+xml :image/jpeg :image/png
@@ -945,7 +950,8 @@ C-x C-e `jupyter-eval-line-or-region'"
945
950
(lambda (x ) (eq (car x) 'jupyter-org-font-lock-ansi-escapes ))
946
951
org-font-lock-keywords))))
947
952
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 ))
949
955
950
956
; ;; Constructing org syntax trees
951
957
You can’t perform that action at this time.
0 commit comments