From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Re: short way to insert source tag in org mode? Date: Mon, 28 Sep 2009 23:14:55 -0400 Message-ID: <87pr9ae91s.fsf@gollum.intra.norang.ca> References: <83iqf429fq.fsf@ymail.com> <873a68fnlq.fsf@gollum.intra.norang.ca> <83ske6frn0.fsf@ymail.com> <29623.1254192352@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsTBA-0006xh-KS for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 23:15:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsTB7-0006tC-Pc for Emacs-orgmode@gnu.org; Mon, 28 Sep 2009 23:15:04 -0400 Received: from [199.232.76.173] (port=40424 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsTB7-0006st-IQ for Emacs-orgmode@gnu.org; Mon, 28 Sep 2009 23:15:01 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:53563) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsTB7-0003qM-DI for Emacs-orgmode@gnu.org; Mon, 28 Sep 2009 23:15:01 -0400 In-Reply-To: <29623.1254192352@gamaville.dokosmarshall.org> (Nick Dokos's message of "Mon\, 28 Sep 2009 22\:45\:52 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Emacs-orgmode@gnu.org, Water Lin Nick Dokos writes: > Water Lin wrote: > >> Bernt Hansen writes: >> >> > Water Lin 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 > key itself is bound to org-cycle. When I say > > C-h c > > emacs says "", whereas if I say > > C-h c C-i > > emacs says "TAB". In an emacs without yasnippets, otoh, > > C-h c > > says "TAB (translated from ". 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 and TAB as Nick does but both run yas/expand. I've never tried it in Emacs 23. -Bernt