12

Say I have an org-mode document with some block like this:

#+BEGIN_SRC blablabla
bla1
bla2
bla3
#+END_SRC

I'd like to put the point after, say, bla2, call some elisp and split the block like so:

#+BEGIN_SRC blablabla
bla1
bla2
#+END_SRC

#+BEGIN_SRC blablabla
bla3
#+END_SRC

Does this already exist?

1 Answer 1

13

The org-babel-demarcate-block command does this code block splitting. By default it's bound to C-c C-v C-d.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.