From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: short way to insert source tag in org mode? Date: Mon, 28 Sep 2009 22:45:52 -0400 Message-ID: <29623.1254192352@gamaville.dokosmarshall.org> References: <83iqf429fq.fsf@ymail.com> <873a68fnlq.fsf@gollum.intra.norang.ca> <83ske6frn0.fsf@ymail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsSkE-0007bN-UZ for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 22:47:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsSk9-0007bB-It for Emacs-orgmode@gnu.org; Mon, 28 Sep 2009 22:47:13 -0400 Received: from [199.232.76.173] (port=46972 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsSk9-0007b8-Da for Emacs-orgmode@gnu.org; Mon, 28 Sep 2009 22:47:09 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:49553) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsSk8-00006F-W7 for Emacs-orgmode@gnu.org; Mon, 28 Sep 2009 22:47:09 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KQP0037AOZ9EK10@vms173013.mailsrvcs.net> for Emacs-orgmode@gnu.org; Mon, 28 Sep 2009 21:45:09 -0500 (CDT) In-reply-to: Message from Water Lin of "Tue, 29 Sep 2009 09:48:03 +0800." <83ske6frn0.fsf@ymail.com> 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: Water Lin Cc: Bernt Hansen , Emacs-orgmode@gnu.org 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. HTH, Nick