From mboxrd@z Thu Jan 1 00:00:00 1970 From: Water Lin Subject: Re: Re: short way to insert source tag in org mode? Date: Tue, 29 Sep 2009 09:48:03 +0800 Message-ID: <83ske6frn0.fsf@ymail.com> References: <83iqf429fq.fsf@ymail.com> <873a68fnlq.fsf@gollum.intra.norang.ca> 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 1MsRpG-00019Z-MG for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 21:48:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsRpB-00019F-0g for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 21:48:21 -0400 Received: from [199.232.76.173] (port=34513 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsRpA-00019C-S9 for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 21:48:16 -0400 Received: from n13.bullet.mail.mud.yahoo.com ([68.142.206.40]:22224) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MsRpA-0001Bb-DO for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 21:48:16 -0400 In-Reply-To: <873a68fnlq.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Sun, 27 Sep 2009 10:50:41 -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: Bernt Hansen Cc: Emacs-orgmode@gnu.org Bernt Hansen writes: > Water Lin writes: > >> While I am using org to publish my source code, I include my code in >> following way: >> >> #+BEGIN_SRC emacs-lisp >> some emacs-lisp code >> #+END_SRC >> >> Everytime I copy the begin and the end tag which is >> >> #+BEGIN_SRC emacs-lisp >> >> and >> >> #+END_SRC >> >> to my org file. >> >> 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 > > -Bernt > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > 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? -- Water Lin's blog: http://blog.waterlin.org Email: WaterLin@ymail.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com