emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Indenting source code blocks in lists


From: Bastien
Subject: Re: [O] Indenting source code blocks in lists
Date: Wed, 25 Jan 2012 15:37:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

>> I select the region, then `C-x r t' to insert the whitespaces.
>
> I use C-x r o, which doesn't require to count the spaces, and is more
> visual.

Clever -- I start to love this mailing list ;)

>> But I don't feel very clever neither, we should have a better 
>> way for this -- something that deactivate folding and indent
>> to the beginning of the list item above.
>
> I'm not sure we should provide this. There are already so many ways,
> often in muscle memory, to achieve the same in Emacs that we probably
> shouldn't bother.

The attached patch let `org-metaright' indent a drawer or a block
correctly.  It introduces two new function ̀org-indent-block' and 
`org-indent-drawer' which derive from local hacks I'm using quite
often now.  

Perhaps ̀org-metaright' is not the best keybinding for this function,
please suggest a better one.

Thanks,

Attachment: 0001-org.el-Make-org-metaright-indent-drawers-and-blocks.patch
Description: Text Data

-- 
 Bastien

reply via email to

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