emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Michael Hannon
Subject: Re: [O] [PATCH] org.el: Added a new interactive function which inserts a code block
Date: Tue, 8 May 2012 15:19:10 -0700 (PDT)


 Bastien <address@hidden> wrote:


> Eric Schulte <address@hidden> 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 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?
> 
> <s TAB M-TAB
> 
> inserts
> 
> #+begin_src 
> 
> and offers completion over ̀org-babel-load-languages' (see
> `pcomplete/org-mode/block-option/src' in org-pcomplete.el)
> 
> This spares us new keybindings :)  

That's very cool.  I wasn't aware of that.  I notice that on my system the 
completion list does not include "cpp", which is indeed accepted and processed 
correctly.

-- Mike



reply via email to

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