[O] [PATCH] org.el: Added a new interactive function which inserts a code block

2012-05-08 Thread Florian Adamsky
Hello, I do not always use code blocks in org-mode, but when I do, I have forgotten the syntax :-). In order to prevent that situation I wrote a little function which is similar to org-insert-link. I called that function org-insert-code-block. This function reads the language per minibuffer in

Re: [O] [PATCH] org.el: Added a new interactive function which inserts a code block

2012-05-08 Thread Eric Schulte
Hi Florian, You function looks good (although two lines in the middle are not indented correctly). Have you tried typing s and then pressing TAB. This is how I insert code blocks, as well as q for quote blocks, etc... That said your function does more than the s approach because it also limits

Re: [O] [PATCH] org.el: Added a new interactive function which inserts a code block

2012-05-08 Thread Bastien
Hi Florian and Eric, Eric Schulte eric.schu...@gmx.com writes: Have you tried typing s and then pressing TAB. This is how I insert code blocks, as well as q for quote blocks, etc... That said your function does more than the s approach because it also limits the languages to those which

Re: [O] [PATCH] org.el: Added a new interactive function which inserts a code block

2012-05-08 Thread Michael Hannon
Bastien b...@gnu.org wrote: Eric Schulte eric.schu...@gmx.com writes: Have you tried typing s and then pressing TAB.  This is how I insert code blocks, as well as q for quote blocks, etc... That said your function does more than the s approach because it also limits the

Re: [O] [PATCH] org.el: Added a new interactive function which inserts a code block

2012-05-08 Thread Eric S Fraga
Bastien b...@gnu.org writes: Hi Florian and Eric, Eric Schulte eric.schu...@gmx.com writes: Have you tried typing s and then pressing TAB. This is how I insert code blocks, as well as q for quote blocks, etc... That said your function does more than the s approach because it also limits