mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
@@ -7,7 +7,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
|
||||
<meta name="title" content="Expanding snippets"/>
|
||||
<meta name="generator" content="Org-mode"/>
|
||||
<meta name="generated" content="2013-11-28T23:36-0500"/>
|
||||
<meta name="generated" content="2013-12-02T19:38+0000"/>
|
||||
<meta name="author" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta name="keywords" content=""/>
|
||||
@@ -330,9 +330,11 @@ See <a href="./snippet-menu.html">the YASnippet Menu</a>.
|
||||
|
||||
|
||||
<p>
|
||||
To integrate with <code>hippie-expand</code>, just put <a href="snippet-reference.html#yas-hippie-try-expand"><code>yas-hippie-try-expand</code></a> in
|
||||
<code>hippie-expand-try-functions-list</code>. This probably makes more sense when
|
||||
placed at the top of the list, but it can be put anywhere you prefer.
|
||||
To integrate with <code>hippie-expand</code>, just put
|
||||
<a href="snippet-reference.html#yas-hippie-try-expand"><code>yas-hippie-try-expand</code></a> in
|
||||
<code>hippie-expand-try-functions-list</code>. This probably makes more sense
|
||||
when placed at the top of the list, but it can be put anywhere you
|
||||
prefer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -344,9 +346,10 @@ placed at the top of the list, but it can be put anywhere you prefer.
|
||||
|
||||
|
||||
<p>
|
||||
Sometimes you might want to expand a snippet directly from you own elisp
|
||||
code. You should call <a href="snippet-reference.html#yas-expand-snippet"><code>yas-expand-snippet</code></a> instead of <a href="snippet-reference.html#yas-expand"><code>yas-expand</code></a> in
|
||||
this case.
|
||||
Sometimes you might want to expand a snippet directly from you own
|
||||
elisp code. You should call
|
||||
<a href="snippet-reference.html#yas-expand-snippet"><code>yas-expand-snippet</code></a> instead of
|
||||
<a href="snippet-reference.html#yas-expand"><code>yas-expand</code></a> in this case.
|
||||
</p>
|
||||
<p>
|
||||
As with expanding from the menubar, the condition system and multiple
|
||||
@@ -418,9 +421,9 @@ In particular, the following things matter:
|
||||
<li>Buffer-local list of extra modes
|
||||
|
||||
<p>
|
||||
Use <a href="#yas-activate-extra-mode"><code>yas-activate-extra-mode</code></a> to consider snippet tables whose name
|
||||
does not correspond to a major mode. Typically, you call this from
|
||||
a minor mode hook, for example:
|
||||
Use <a href="#yas-activate-extra-mode"><code>yas-activate-extra-mode</code></a> to
|
||||
consider snippet tables whose name does not correspond to a major
|
||||
mode. Typically, you call this from a minor mode hook, for example:
|
||||
</p></li>
|
||||
</ul>
|
||||
|
||||
@@ -437,7 +440,9 @@ In particular, the following things matter:
|
||||
|
||||
|
||||
<ul>
|
||||
<li>Buffer-local <a href="snippet-reference.html#yas-buffer-local-condition"><code>yas-buffer-local-condition</code></a> variable
|
||||
<li>Buffer-local
|
||||
<a href="snippet-reference.html#yas-buffer-local-condition"><code>yas-buffer-local-condition</code></a>
|
||||
variable
|
||||
|
||||
<p>
|
||||
This variable provides finer grained control over what snippets can
|
||||
@@ -609,15 +614,14 @@ shortcut to select the 6th candidate.
|
||||
|
||||
<p>
|
||||
See the documentation on variable <a href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>
|
||||
</p>
|
||||
</div>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="postamble">
|
||||
<hr><p class='creator'>Generated by <a href="http://orgmode.org">Org</a> version 7.9.3f with <a href="http://www.gnu.org/software/emacs/">Emacs</a> version 24 on 2013-11-28T23:36-0500 from eda83304afc7894f0b5ddc15b04b041be52b94fb
|
||||
<hr><p class='creator'>Generated by <a href="http://orgmode.org">Org</a> version 7.9.3f with <a href="http://www.gnu.org/software/emacs/">Emacs</a> version 24 on 2013-12-02T19:38+0000 from 582e3680b66a62f304034376516207c006f77fe4
|
||||
</p>
|
||||
<p class='xhtml-validation'><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a></p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user