From 1371cad310e51f1caa7d760d64294a4418ed2254 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 3 Jun 2009 09:17:40 +0200 Subject: [PATCH] Document the solution for the YASnippet/org-mode problem --- doc/org.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/org.texi b/doc/org.texi index 485a39d21..979e5da48 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -10354,6 +10354,19 @@ Yes, these are unfortunately more difficult to remember. If you want to have other replacement keys, look at the variable @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 @cindex @file{windmove.el} Also this package uses the @kbd{S-} keys, so everything written