emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] org.texi: yasnippet nested snippet


From: Sylvain Rousseau
Subject: [O] [PATCH] org.texi: yasnippet nested snippet
Date: Fri, 26 Aug 2011 14:49:31 +0200

Hi,

The proposed workaround doesn't support nested snippet!

(setq yas/triggers-in-field t) to enable it.

Here is a patch to fix this:

diff --git a/doc/org.texi b/doc/org.texi
index 002ada1..2295fd0 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -14097,7 +14097,7 @@ Then, tell Org mode what to do with the new function:
               (make-variable-buffer-local 'yas/trigger-key)
               (setq yas/trigger-key [tab])
               (add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand)
-              (define-key yas/keymap [tab] 'yas/next-field)))
+              (define-key yas/keymap [tab] 'yas/next-field-or-maybe-expand)))
address@hidden lisp
 
address@hidden @file{windmove.el} by Hovav Shacham


Sylvain.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]