From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: YASnippet fix not working Date: Sun, 02 Aug 2009 14:30:48 -0600 Message-ID: References: <87fxcanhrd.wl%ks@mocker.org> 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 1MXhhu-0003XC-8W for emacs-orgmode@gnu.org; Sun, 02 Aug 2009 16:31:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXhhp-0003WD-Ca for emacs-orgmode@gnu.org; Sun, 02 Aug 2009 16:31:01 -0400 Received: from [199.232.76.173] (port=45883 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXhhp-0003Vp-2g for emacs-orgmode@gnu.org; Sun, 02 Aug 2009 16:30:57 -0400 Received: from rv-out-0708.google.com ([209.85.198.240]:27046) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXhho-0004CR-6T for emacs-orgmode@gnu.org; Sun, 02 Aug 2009 16:30:56 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1396567rvb.6 for ; Sun, 02 Aug 2009 13:30:53 -0700 (PDT) In-Reply-To: <87fxcanhrd.wl%ks@mocker.org> (Kyle Sexton's message of "Sun, 02 Aug 2009 14:21:58 -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: Kyle Sexton Cc: org-mode Kyle Sexton writes: > 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-- > The following works for me --8<---------------cut here---------------start------------->8--- (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))) --8<---------------cut here---------------end--------------->8--- > > 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. > C-h c reports yas/expand for me. Best -- Eric > > The modeline while working on an org file shows that YASnippet is > running, and manually executing M-x yas/expand will expand the > org-mode hooks that are defined. > > For some reason I just can't remap that tab key! > > Thanks for any help, pretty soon I'll just remap it to a different > key. :) > > -- > Kyle Sexton > > > _______________________________________________ > 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