From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Schmitt Subject: Re: Re: short way to insert source tag in org mode? Date: Tue, 29 Sep 2009 09:15:37 +0200 Message-ID: <4AC1B419.8070004@cs.tu-berlin.de> References: <83iqf429fq.fsf@ymail.com> <873a68fnlq.fsf@gollum.intra.norang.ca> <83ske6frn0.fsf@ymail.com> <29623.1254192352@gamaville.dokosmarshall.org> <838wfyfnft.fsf@ymail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsWwg-00030r-PB for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 03:16:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsWwb-0002zy-1t for Emacs-orgmode@gnu.org; Tue, 29 Sep 2009 03:16:21 -0400 Received: from [199.232.76.173] (port=35197 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsWwa-0002zv-U5 for Emacs-orgmode@gnu.org; Tue, 29 Sep 2009 03:16:16 -0400 Received: from mx20.gnu.org ([199.232.41.8]:4260) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsWwa-0005BH-9s for Emacs-orgmode@gnu.org; Tue, 29 Sep 2009 03:16:16 -0400 Received: from mail.cs.tu-berlin.de ([130.149.17.13]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsWwY-0002bN-HF for Emacs-orgmode@gnu.org; Tue, 29 Sep 2009 03:16:14 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost-12225.cs.tu-berlin.de (Postfix) with ESMTP id 021FF3441F for ; Tue, 29 Sep 2009 09:16:12 +0200 (MEST) In-Reply-To: <838wfyfnft.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 Hi Water Lin, (no with reply to all, sorry for double posting, Lin) did you try the workaround mentioned here: http://orgmode.org/worg/org-faq.php#YASnippet Greetings, Stephan Water Lin wrote: > 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. >> >> HTH, >> Nick >> > > Yes, thanks, it works. > > Water Lin > -- -------------------------------------------- Stephan Schmitt Neural Information Processing Group Fac. IV - Electrical Engineering & Computer Science Berlin University of Technology Office: +49 30 - 314 24 158 Mobile: +49 179 - 593 84 48 Email: echo 'drmabuse at cs x tu-berlin x de' \ | sed -e 's/ x /\./g' -e 's/ at /@/' --------------------------------------------