emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [RFC] Add commmand for wrapping sexp/region in src-blocks to Org


From: Nicolas Goaziou
Subject: Re: [O] [RFC] Add commmand for wrapping sexp/region in src-blocks to Org?
Date: Sat, 02 Aug 2014 11:25:09 +0200

Hello,

Thorsten Jolitz <address@hidden> writes:

> I often missed the following command for wrapping existing content into
> src-blocks in the past, besides knowing about
> `org-babel-demarcate-block' and easy template insertion. Would it make
> sense to add it to Org-mode?
>
> I made it cover several use cases:
>

[...]

>   - Wrap region between point and +/- N lines forward/backward (very
>     fast because no point movement is involved).

This is not really useful as, with muscle memory, you'll probably mark
the appropriate region instead of counting lines. Also it requires the
point to be at the center of the area you want to wrap.

>   - Wrap active region.

Why limiting it to source blocks? One may want to wrap region with,
e.g., a quote block.

Also, with a prefix argument, it would be nice to edit the block
containing point (change its type), or remove it completely.


Regards,

-- 
Nicolas Goaziou



reply via email to

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