Add: org: +ipython +right-popup
option
This commit is contained in:
parent
f98f7ab552
commit
21631aa8bf
1 changed files with 29 additions and 28 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue