Re: [O] Indenting source code blocks in lists

2012-01-28 Thread Bastien
Bastien b...@altern.org writes: 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

Re: [O] Indenting source code blocks in lists

2012-01-25 Thread Phil (Philip) Mason
But let us assume that I already have a source block, and it is not indented correctly; what is the easy way to indent this block in a list? If you indent just the #+BEGIN_SRC line and then use C-c ' to open the source editor and C-c ' to close it again it indents all source to the level of

Re: [O] Indenting source code blocks in lists

2012-01-25 Thread Jambunathan K
Jarmo Hurri jarmo.hu...@syk.fi writes: what is the easy way to indent this block Mark the block as you would mark regularly. Then to 10 spaces you can do this: C-u 1 0 C-x TAB To figure out the number of spaces to add, you mentally the subtract the current column with the target column. Turn

Re: [O] Indenting source code blocks in lists

2012-01-25 Thread Nicolas Goaziou
Hello, Bastien b...@altern.org writes: Jarmo Hurri jarmo.hu...@syk.fi writes: But let us assume that I already have a source block, and it is not indented correctly; what is the easy way to indent this block in a list? (I can always keep pressing spacebar, but it does not feel very

Re: [O] Indenting source code blocks in lists

2012-01-25 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com 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

[O] Indenting source code blocks in lists

2012-01-24 Thread Jarmo Hurri
Greetings. I am a big fan of org mode, but occasionally I feel that it is quite difficult to figure out how to do a relatively simple task. So sorry for this newbie question. The manual clearly states the following: Since indentation is what governs the structure of these lists, many

Re: [O] Indenting source code blocks in lists

2012-01-24 Thread Bastien
Hi Jarmo, Jarmo Hurri jarmo.hu...@syk.fi writes: But let us assume that I already have a source block, and it is not indented correctly; what is the easy way to indent this block in a list? (I can always keep pressing spacebar, but it does not feel very intelligent.) I select the region,