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: Eric Schulte
Subject: Re: [O] [PATCH] org.el: Added a new interactive function which inserts a code block
Date: Tue, 08 May 2012 14:30:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

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 the languages to those which are supported.  If others think this
is generally useful I'd be happy to add it to ob.el.

Thanks for sharing,

Florian Adamsky <address@hidden> 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 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 supports completion. It only allows languages which
> are loaded via org-babel-load-languages.
>
> Is this function also useful to others? I'm not a long-time Emacs lisp
> hacker, so any comment is welcome. Has anyone an idea for a reasonable
> keybinding for org-insert-code-block which is not already taken by
> org-mode?
>
> Thanks in advance.
>
> Best regards,
> Florian 
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



reply via email to

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