emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: short way to insert source tag in org mode?


From: Bernt Hansen
Subject: Re: [Orgmode] Re: short way to insert source tag in org mode?
Date: Mon, 28 Sep 2009 23:14:55 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Nick Dokos <address@hidden> writes:

> Water Lin <address@hidden> wrote:
>
>> Bernt Hansen <address@hidden> writes:
>> 
>> > Water Lin <address@hidden> writes:
>> >
>> >> ...
>> >> I want to find a way to inset them handly. Is there a key binding for
>> >> this?
>> >
>> > I use yasnippet for this.
>> >
>> > http://doc.norang.ca/org-mode.html#Yasnippets
>> >
>> 
>> I am using YASnippets according to your suggestion. But my YASnippet
>> works in other modes like Perl, but just doesn't work in org-mode.
>> 
>> I have already added file "org-mode/block" under folder
>> "snippets\text-mode".
>> But while I type block and press TAB in org-mode, nothing happens. I
>> think the org must be use the TAB key for special work.
>> 
>> Is it true?
>> 
>
> Using Bernt's setup, I can get the block expanded using C-i, but the <tab>
> key itself is bound to org-cycle. When I say
>
>     C-h c <tab>
>
> emacs says "<tab>", whereas if I say
>
>     C-h c C-i
>
> emacs says "TAB". In an emacs without yasnippets, otoh,
>
>     C-h c <tab>
>
> says "TAB (translated from <tab>". This is all under X of course: I suspect
> that on a console, things would be simpler.

For me both TAB and C-i run the command yas/expand (according to C-h k).
I'm using GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of
2008-11-09 on raven, modified by Debian.

I get <tab> and TAB as Nick does but both run yas/expand.

I've never tried it in Emacs 23.

-Bernt




reply via email to

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