emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Split source block at point


From: Jambunathan K
Subject: Re: [O] Split source block at point
Date: Wed, 27 Nov 2013 12:48:46 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Jambunathan K <address@hidden> writes:

> C-h K C-c C-v C-d
      ^
      ^
      k

Looks like the keybindings are not indexed the canonical way in the Org
manual.
      
> Alexander Baier <address@hidden> writes:
>
>> Hello together,
>>
>> is therer a command or a function that lets me split a source block at a
>> given position?  I think what I mean is best demonstrated by looking at
>> an example:
>>
>> Given this buffer:
>> ----------------------------------------------------------------
>> begin_src emacs-lisp
>>   (defun foo ()
>>     (bar))
>>
>>   (baz (foo))
>> end_src
>> ----------------------------------------------------------------
>>
>> With point somewhere at the free line I want to invoke the split
>> function and get this:
>> ----------------------------------------------------------------
>> begin_src emacs-lisp
>>   (defun foo ()
>>     (bar))
>> end_src
>>
>> begin_src emacs-lisp
>>   (baz (foo))
>> end_src
>> ----------------------------------------------------------------
>> This is similar to what M-RET does in message-mode.
>>
>> Do we already have something like this in org? And if not, do you think
>> this is useful? Personally I find myself quite frequently splitting up
>> soure blocks manually.
>>
>> Best regards,
>> --
>>  Alexander Baier



reply via email to

[Prev in Thread] Current Thread [Next in Thread]