From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: YASnippet fix not working Date: Sun, 02 Aug 2009 23:59:59 +0100 Message-ID: <87r5vt6cuo.wl%ucecesf@ucl.ac.uk> References: <87fxcanhrd.wl%ks@mocker.org> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXk2Q-00048Q-Nc for emacs-orgmode@gnu.org; Sun, 02 Aug 2009 19:00:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXk2M-0003xe-4X for emacs-orgmode@gnu.org; Sun, 02 Aug 2009 19:00:22 -0400 Received: from [199.232.76.173] (port=53376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXk2L-0003xU-Vh for emacs-orgmode@gnu.org; Sun, 02 Aug 2009 19:00:18 -0400 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:34887) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MXk2L-0001PT-8t for emacs-orgmode@gnu.org; Sun, 02 Aug 2009 19:00:17 -0400 In-Reply-To: <87fxcanhrd.wl%ks@mocker.org> 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: Kyle Sexton Cc: org-mode At Sun, 02 Aug 2009 14:21:58 -0500, Kyle Sexton wrote: > > I'm trying to get YASnippet working with org-mode, but the fix I've > found online doesn't seem to be working. > > --snip-- > (add-hook 'org-mode-hook > (lambda () > (org-set-local 'yas/trigger-key [tab]) > (define-key yas/keymap [tab] 'yas/next-field-group))) > --snip-- > > I've added the above code to my emacs init file. When I run C-h k > in an org-file, it still reports that org-cycle is bound to > tab. Two things: 1. make sure you initialise yasnippet *before* org-mode. 2. my configuration is: (add-hook 'org-mode-hook '(lambda () (make-variable-buffer-local 'yas/trigger-key) (setq yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/next-field-group) ) ) which works for me. Maybe give this a try?