diff --git a/modules/lang/org/+ipython.el b/modules/lang/org/+ipython.el index 82d8a22e6..8c483987c 100644 --- a/modules/lang/org/+ipython.el +++ b/modules/lang/org/+ipython.el @@ -8,34 +8,35 @@ :config (setq ob-ipython-resources-dir +org-ob-ipython-resources-dir) ;; popup - (set! - :popup "^\\*Org Src" - '((size . 100) - (side . right) - (slot . -1) - (window-height . 0.6)) - '((quit) - (select . t) - (modeline))) - (set! - :popup "^\\*Python" - '((slot . 0) - (side . right) - (size . 100)) - '((select) (quit) (transient))) - (set! - :popup "\\*ob-ipython.*" - '((slot . 2) - (side . right) - (size . 100) - (window-height . 0.2)) - '((select) (quit) (transient))) - (set! - :popup "\\*Python:.*" - '((slot . 0) - (side . right) - (size . 100)) - '((select) (quit) (transient))) + (when (featurep! +right-popup) + (set! + :popup "^\\*Org Src" + '((size . 100) + (side . right) + (slot . -1) + (window-height . 0.6)) + '((quit) + (select . t) + (modeline))) + (set! + :popup "^\\*Python" + '((slot . 0) + (side . right) + (size . 100)) + '((select) (quit) (transient))) + (set! + :popup "\\*ob-ipython.*" + '((slot . 2) + (side . right) + (size . 100) + (window-height . 0.2)) + '((select) (quit) (transient))) + (set! + :popup "\\*Python:.*" + '((slot . 0) + (side . right) + (size . 100)) + '((select) (quit) (transient)))) ;; advices for remote kernel and org-src-edit (advice-add 'org-babel-edit-prep:ipython :override #'+org*org-babel-edit-prep:ipython) (advice-add 'org-babel-ipython-initiate-session :override #'+org*org-babel-ipython-initiate-session)