doc: fixes to "yasnippet" sub-section in Conflicts

* doc/org.texi (Conflicts): Changed "yasnippets" to "yasnippet" and
  added extra whitespace around functions to be consistent with the
  rest of the section.
This commit is contained in:
Eric Schulte 2011-01-14 06:30:36 -07:00
parent 163cd58ffd
commit 6b5953818b
1 changed files with 3 additions and 1 deletions

View File

@ -13465,15 +13465,17 @@ fixed this problem:
(define-key yas/keymap [tab] 'yas/next-field-group)))
@end lisp
The latest version of yasnippets doesn't play well with Org mode. If the
The latest version of yasnippet doesn't play well with Org mode. If the
above code does not fix the conflict, start by defining the following
function:
@lisp
(defun yas/org-very-safe-expand ()
(let ((yas/fallback-behavior 'return-nil)) (yas/expand)))
@end lisp
Then, tell Org mode what to do with the new function:
@lisp
(add-hook 'org-mode-hook
(lambda ()