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

2012-05-08 Thread Eric S Fraga
Bastien writes: > Hi Florian and Eric, > > Eric Schulte writes: > >> Have you tried typing "> code blocks, as well as > >> That said your function does more than the > limits the languages to those which are supported. If others think this >> is generally useful I'd be happy to add it to ob.el.

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

2012-05-08 Thread Michael Hannon
Bastien wrote: > Eric Schulte writes: > >> Have you tried typing " I insert >> code blocks, as well as > >> That said your function does more than the > limits the languages to those which are supported.  If others think this >> is generally useful I'd be happy to add it to ob.el. >

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 writes: > Have you tried typing " code blocks, as well as > That said your function does more than the limits the languages to those which are supported. If others think this > is generally useful I'd be happy to add it to ob.el. Don't we have this already?

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 " writes: > 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 fun

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