Document the solution for the YASnippet/org-mode problem

This commit is contained in:
Carsten Dominik 2009-06-03 09:17:40 +02:00
parent 5e39f24715
commit 1371cad310
1 changed files with 13 additions and 0 deletions

View File

@ -10354,6 +10354,19 @@ Yes, these are unfortunately more difficult to remember. If you want
to have other replacement keys, look at the variable to have other replacement keys, look at the variable
@code{org-disputed-keys}. @code{org-disputed-keys}.
@item @file{yasnippet.el}
@cindex @file{yasnippet.el}
The way Org-mode binds the TAB key (binding to @code{[tab]} instead of
@code{"\t"}) overrules yasnippets' access to this key. The following code
fixed this problem:
@lisp
(add-hook 'org-mode-hook
(lambda ()
(org-set-local 'yas/trigger-key [tab])
(define-key yas/keymap [tab] 'yas/next-field-group)))
@end lisp
@item @file{windmove.el} by Hovav Shacham @item @file{windmove.el} by Hovav Shacham
@cindex @file{windmove.el} @cindex @file{windmove.el}
Also this package uses the @kbd{S-<cursor>} keys, so everything written Also this package uses the @kbd{S-<cursor>} keys, so everything written