From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Re: Using yasnippet with org Mode Date: Mon, 24 Nov 2008 09:34:25 +0000 Message-ID: <492A7521.7040504@manor-farm.org> References: <4929ADBB.6050809@manor-farm.org> <871vx2f8qs.fsf@gmail.com> <87wseu9m62.fsf@thinkpad.tsdh.de> <87od06dpx0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4e1m-000547-JO for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 11:11:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4e1l-00053F-LI for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 11:11:09 -0500 Received: from [199.232.76.173] (port=50555 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4dmP-00026Z-Tv for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 10:55:18 -0500 Received: from a2s22.a2hosting.com ([69.39.86.130]:49268) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L4YIG-0008FJ-SZ for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 05:03:48 -0500 Received: from [217.146.125.43] (helo=firewall.banter.local) by a2s22.a2hosting.com with esmtp (Exim 4.69) (envelope-from ) id 1L4YIE-0005AP-Un for emacs-orgmode@gnu.org; Mon, 24 Nov 2008 05:03:47 -0500 Received: from localhost (localhost [127.0.0.1]) by firewall.banter.local (Postfix) with ESMTP id D21AECB1C for ; Mon, 24 Nov 2008 09:36:35 +0000 (GMT) Received: from firewall.banter.local ([127.0.0.1]) by localhost (firewall.banter.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bt347xtGt-1T for ; Mon, 24 Nov 2008 09:36:35 +0000 (GMT) Received: from [192.168.0.60] (scamper.banter.local [192.168.0.60]) by firewall.banter.local (Postfix) with ESMTP id 230BFC8CC for ; Mon, 24 Nov 2008 09:36:35 +0000 (GMT) In-Reply-To: <87od06dpx0.fsf@gmail.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: emacs-orgmode@gnu.org > As for using yasnippets with tab, the following successfully binds tab > to yas/expand when I start emacs with > > emacs -Q (skips loading customization) > > and then evaluate the following elisp to load yasnippets and org-mode > > (load "~/emacs/elisp/util/yasnippet.el") > (yas/initialize) > (yas/load-directory "~/emacs/snippets") > (add-to-list 'load-path "~/emacs/org") > (require 'org) > (add-hook 'org-mode-hook > (lambda () > ;; yasnippet > (make-variable-buffer-local 'yas/trigger-key) > (setq yas/trigger-key [tab]) > (define-key yas/keymap [tab] 'yas/next-field-group))) > > This works for me using a fairly recent Emacs 23 from cvs. > Thanks, I have tried that, but it didn't work for me:) I am using Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-09-05 on vernadsky, modified by Ubuntu. I have also tried binding Yasnippet to the F1 key, which isn't used by anything else. Whilst this works in text mode, it doesn't in org mode. I'll ask in the Yasnippet list and see if they can suggest anything. Ian.