Jeff Kowalczyk <[email protected]> writes:
> (add-hook 'org-mode-hook
> (lambda ()
> (org-set-local 'yas/trigger-key [tab])
> (define-key yas/keymap [tab] 'yas/next-field-group)))
According to the yasnippet FAQ (or is it on its forum), it should be
(add-hook 'org-mode-hook
#'(lambda ()
(setq yas/fallback-behavior
`(apply ,(lookup-key org-mode-map [tab])))
(local-set-key [tab] 'yas/expand)))
Anyway, there is one major problem left, it doesn't work with
org-indent-mode as, when you press TAB to get to the next field of a
snippet, you are sent to the first headline in the org file.
I have yet to find a workaround about that.
Regards,
--
Nicolas Goaziou
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode