Re: [Orgmode] YASnippet fix not working
At Sun, 02 Aug 2009 23:59:59 +0100, Eric S Fraga wrote: > > > 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? Thanks, turns out the issue was with me running yasnippet-0.6.0c. After switching to 0.5.10 everything is working as expected. -- 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
Re: [Orgmode] YASnippet fix not working
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? ___ 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
Re: [Orgmode] YASnippet fix not working
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 ___ 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
[Orgmode] YASnippet fix not working
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. 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