From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [Babel] Macro for begin_src? Date: Sat, 17 Apr 2010 09:05:59 -0600 Message-ID: <87aat215m0.fsf@gmail.com> References: <87fx2ug61h.fsf@stats.ox.ac.uk> <874ojag2bo.fsf@stats.ox.ac.uk> <87wrw6z6hc.fsf@gmail.com> <4BC9C082.6040709@ccbr.umn.edu> 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 1O39eA-0001QM-QV for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 11:09:26 -0400 Received: from [140.186.70.92] (port=59699 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O39e5-0001Ku-TX for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 11:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O39av-0001fh-L2 for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 11:06:07 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:42050) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O39av-0001fU-G5 for emacs-orgmode@gnu.org; Sat, 17 Apr 2010 11:06:05 -0400 Received: by pwi2 with SMTP id 2so3392231pwi.0 for ; Sat, 17 Apr 2010 08:06:04 -0700 (PDT) In-Reply-To: (Nathan Neff's message of "Sat, 17 Apr 2010 09:28:51 -0500") 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: Nathan Neff Cc: Dan Davison , =?utf-8?B?xaB0xJtww6Fu?=, emacs-orgmode@gnu.org, =?utf-8?B?IE7Em21lYw==?= RE: collections of org-mode yasnippets There is a collection available on github http://github.com/RickMoynihan/yasnippet-org-mode RE: binding the tab key for Yas expansion in Org-mode It is tricky, I use the solution shown here http://eschulte.github.com/emacs-starter-kit/starter-kit-org.html Best -- Eric Nathan Neff writes: > On Sat, Apr 17, 2010 at 9:06 AM, Erik Iverson wrote: > >> >> I'm guessing what you really want there is >>> >>> (set (make-local-variable 'yas/trigger-key) [tab]) >>> >>> instead of >>> >>> > (make-variable-buffer-local 'yas/trigger-key) >>> > (setq yas/trigger-key [tab]) >>> >>> >>> Hmmm. >>> >>> Do you guys un-map your TAB key so that it doesn't run org-cycle? >>> My TAB key will correctly trigger yas/insert-snippet in emacs-lisp mode. >>> However, in org-mode my TAB key is still mapped to org-cycle, even if I >>> add the org-mode hook using the code above. >>> >>> Thanks, >>> --Nate >>> >>> >> The order you do it might matter? >> > > I found the problem -- it's detailed right here, and it's tailored to fix > compatibility with org-mode: > http://yasnippet.googlecode.com/svn/trunk/doc/faq.html > > --Nate > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode