Re: [O] Indenting source code blocks in lists

2012-01-28 Thread Bastien
Bastien 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 keybinding for th

Re: [O] Indenting source code blocks in lists

2012-01-25 Thread Bastien
Nicolas Goaziou 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 f

Re: [O] Indenting source code blocks in lists

2012-01-25 Thread Nicolas Goaziou
Hello, Bastien writes: > Jarmo Hurri 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 re

Re: [O] Indenting source code blocks in lists

2012-01-25 Thread Jambunathan K
Jarmo Hurri 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 on M-x column-numb

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-24 Thread Bastien
Hi Jarmo, Jarmo Hurri 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, then `C-x r t' to

[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 structura