2017-12-08 22:59:42 -05:00
|
|
|
;;; lang/org/autoload/org-babel.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###if (featurep! +babel)
|
2017-07-05 02:33:41 +02:00
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(defun +org-babel/edit (arg)
|
|
|
|
"Edit the source block at point in a popup.
|
|
|
|
|
|
|
|
If ARG is non-nil (universal argument), use the current window."
|
|
|
|
(interactive "P")
|
|
|
|
(if arg
|
|
|
|
(call-interactively #'org-edit-special)
|
|
|
|
(with-popup-rules! (("^\\*Org Src" :regexp t :select t :noesc t :same t))
|
|
|
|
(call-interactively #'org-edit-special))))
|