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 @@ -128,6 +128,11 @@ See also the docstring of `org-image-actual-width' for more details."
128
128
:group 'ob-jupyter
129
129
:type 'boolean )
130
130
131
+ (defcustom jupyter-org-want-integration t
132
+ " Whether to enable `jupyter-org-interaction-mode' automatically on `org-mode' buffers."
133
+ :group 'ob-jupyter
134
+ :type 'boolean )
135
+
131
136
(defconst jupyter-org-mime-types '(:text/org
132
137
; ; Prioritize images over html
133
138
:image/svg+xml :image/jpeg :image/png
@@ -843,7 +848,8 @@ C-x C-e `jupyter-eval-line-or-region'"
843
848
(lambda (x ) (eq (car x) 'jupyter-org-font-lock-ansi-escapes ))
844
849
org-font-lock-keywords))))
845
850
846
- (add-hook 'org-mode-hook 'jupyter-org-interaction-mode )
851
+ (when jupyter-org-want-integration
852
+ (add-hook 'org-mode-hook 'jupyter-org-interaction-mode ))
847
853
848
854
; ;; Constructing org syntax trees
849
855
You can’t perform that action at this time.
0 commit comments