Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·8 | 1 | ·f308af6e767bb45f9d4bbc96f4f28231·531780·lisp·optional·elpa-yasnippet_0.13.0-2_all.deb |
2 | ·cf1a94599179fdcb62573fb432f5fa3f·4728·lisp·optional·yasnippet_0.13.0-2_all.deb | 2 | ·cf1a94599179fdcb62573fb432f5fa3f·4728·lisp·optional·yasnippet_0.13.0-2_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2018-08-02·02:10:25.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2018-08-02·02:10:25.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····1932·2018-08-02·02:10:25.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····1932·2018-08-02·02:10:25.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···5296 | 3 | -rw-r--r--···0········0········0···529656·2018-08-02·02:10:25.000000·data.tar.xz |
Offset 247, 32 lines modified | Offset 247, 32 lines modified | ||
247 | </div> | 247 | </div> |
248 | <div·id="content"> | 248 | <div·id="content"> |
249 | <h1·class="title">Frequently·Asked·Questions</h1> | 249 | <h1·class="title">Frequently·Asked·Questions</h1> |
250 | <div·id="table-of-contents"> | 250 | <div·id="table-of-contents"> |
251 | <h2>Table·of·Contents</h2> | 251 | <h2>Table·of·Contents</h2> |
252 | <div·id="text-table-of-contents"> | 252 | <div·id="text-table-of-contents"> |
253 | <ul> | 253 | <ul> |
254 | <li><a·href="#org | 254 | <li><a·href="#org8d5f622">Why·is·there·an·extra·newline?</a></li> |
255 | <li><a·href="#org | 255 | <li><a·href="#org47f835c">Why·doesn't·TAB·navigation·work·with·flyspell</a></li> |
256 | <li><a·href="#org | 256 | <li><a·href="#orgd1feb23">How·do·I·use·alternative·keys,·i.e.·not·TAB?</a></li> |
257 | <li><a·href="#org | 257 | <li><a·href="#org5ed28a3">How·do·I·turn·off·the·minor·mode·where·in·some·buffers?</a></li> |
258 | <li><a·href="#org | 258 | <li><a·href="#orgabaf537">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</a></li> |
259 | </ul> | 259 | </ul> |
260 | </div> | 260 | </div> |
261 | </div> | 261 | </div> |
262 | <ul·class="org-ul"> | 262 | <ul·class="org-ul"> |
263 | <li><b>Note</b>:·In·addition·to·the·questions·and·answers·presented·here, | 263 | <li><b>Note</b>:·In·addition·to·the·questions·and·answers·presented·here, |
264 | you·might·also·with·to·visit·the·list·of·<a·href="https://github.com/joaotavora/yasnippet/issues?q=label:support">solved·support·issues</a>·in | 264 | you·might·also·with·to·visit·the·list·of·<a·href="https://github.com/joaotavora/yasnippet/issues?q=label:support">solved·support·issues</a>·in |
265 | the·Github·issue·tracker.··It·might·be·more·up-to-date·than·this | 265 | the·Github·issue·tracker.··It·might·be·more·up-to-date·than·this |
266 | list.</li> | 266 | list.</li> |
267 | </ul> | 267 | </ul> |
268 | <div·id="outline-container-org | 268 | <div·id="outline-container-org8d5f622"·class="outline-2"> |
269 | <h2·id="org | 269 | <h2·id="org8d5f622">Why·is·there·an·extra·newline?</h2> |
270 | <div·class="outline-text-2"·id="text-org | 270 | <div·class="outline-text-2"·id="text-org8d5f622"> |
271 | <p> | 271 | <p> |
272 | If·there·is·a·newline·at·the·end·of·a·snippet·definition·file, | 272 | If·there·is·a·newline·at·the·end·of·a·snippet·definition·file, |
273 | YASnippet·will·add·a·newline·when·expanding·that·snippet.·When·editing | 273 | YASnippet·will·add·a·newline·when·expanding·that·snippet.·When·editing |
274 | or·saving·a·snippet·file,·please·be·careful·not·to·accidentally·add·a | 274 | or·saving·a·snippet·file,·please·be·careful·not·to·accidentally·add·a |
275 | terminal·newline. | 275 | terminal·newline. |
276 | </p> | 276 | </p> |
Offset 280, 17 lines modified | Offset 280, 17 lines modified | ||
280 | Note·that·some·editors·will·automatically·add·a·newline·for·you.·In | 280 | Note·that·some·editors·will·automatically·add·a·newline·for·you.·In |
281 | Emacs,·if·you·set·<code>require-final-newline</code>·to·<code>t</code>,·it·will·add·the | 281 | Emacs,·if·you·set·<code>require-final-newline</code>·to·<code>t</code>,·it·will·add·the |
282 | final·newline·automatically. | 282 | final·newline·automatically. |
283 | </p> | 283 | </p> |
284 | </div> | 284 | </div> |
285 | </div> | 285 | </div> |
286 | <div·id="outline-container-org | 286 | <div·id="outline-container-org47f835c"·class="outline-2"> |
287 | <h2·id="org | 287 | <h2·id="org47f835c">Why·doesn't·TAB·navigation·work·with·flyspell</h2> |
288 | <div·class="outline-text-2"·id="text-org | 288 | <div·class="outline-text-2"·id="text-org47f835c"> |
289 | <p> | 289 | <p> |
290 | A·workaround·is·to·inhibit·flyspell·overlays·while·the·snippet·is | 290 | A·workaround·is·to·inhibit·flyspell·overlays·while·the·snippet·is |
291 | active: | 291 | active: |
292 | </p> | 292 | </p> |
293 | <div·class="org-src-container"> | 293 | <div·class="org-src-container"> |
294 | <pre·class="src·src-emacs-lisp">(add-hook·'flyspell-incorrect-hook | 294 | <pre·class="src·src-emacs-lisp">(add-hook·'flyspell-incorrect-hook |
Offset 307, 17 lines modified | Offset 307, 17 lines modified | ||
307 | <code>priority</code>·property·to·something·big.·If·you·know·emacs-lisp·and·can | 307 | <code>priority</code>·property·to·something·big.·If·you·know·emacs-lisp·and·can |
308 | solve·this·problem,·drop·a·line·in·the | 308 | solve·this·problem,·drop·a·line·in·the |
309 | <a·href="http://groups.google.com/group/smart-snippet">discussion·group</a>. | 309 | <a·href="http://groups.google.com/group/smart-snippet">discussion·group</a>. |
310 | </p> | 310 | </p> |
311 | </div> | 311 | </div> |
312 | </div> | 312 | </div> |
313 | <div·id="outline-container-org | 313 | <div·id="outline-container-orgd1feb23"·class="outline-2"> |
314 | <h2·id="org | 314 | <h2·id="orgd1feb23">How·do·I·use·alternative·keys,·i.e.·not·TAB?</h2> |
315 | <div·class="outline-text-2"·id="text-org | 315 | <div·class="outline-text-2"·id="text-orgd1feb23"> |
316 | <p> | 316 | <p> |
317 | Edit·the·keymaps·<a·href="snippet-reference.html#yas-minor-mode-map"><code>yas-minor-mode-map</code></a>·and | 317 | Edit·the·keymaps·<a·href="snippet-reference.html#yas-minor-mode-map"><code>yas-minor-mode-map</code></a>·and |
318 | <a·href="snippet-reference.html#yas-keymap"><code>yas-keymap</code></a>·as·you·would·any·other·keymap: | 318 | <a·href="snippet-reference.html#yas-keymap"><code>yas-keymap</code></a>·as·you·would·any·other·keymap: |
319 | </p> | 319 | </p> |
320 | <div·class="org-src-container"> | 320 | <div·class="org-src-container"> |
321 | <pre·class="src·src-emacs-lisp">(define-key·yas-minor-mode-map·(kbd·<span·class="org-string">"<tab>"</span>)·nil) | 321 | <pre·class="src·src-emacs-lisp">(define-key·yas-minor-mode-map·(kbd·<span·class="org-string">"<tab>"</span>)·nil) |
Offset 332, 17 lines modified | Offset 332, 17 lines modified | ||
332 | (define-key·yas-keymap·(kbd·<span·class="org-string">"<new-next-field-key>"</span>)·'yas-next-field-or-maybe-expand) | 332 | (define-key·yas-keymap·(kbd·<span·class="org-string">"<new-next-field-key>"</span>)·'yas-next-field-or-maybe-expand) |
333 | (define-key·yas-keymap·(kbd·<span·class="org-string">"<new-prev-field-key>"</span>)·'yas-prev) | 333 | (define-key·yas-keymap·(kbd·<span·class="org-string">"<new-prev-field-key>"</span>)·'yas-prev) |
334 | </pre> | 334 | </pre> |
335 | </div> | 335 | </div> |
336 | </div> | 336 | </div> |
337 | </div> | 337 | </div> |
338 | <div·id="outline-container-org | 338 | <div·id="outline-container-org5ed28a3"·class="outline-2"> |
339 | <h2·id="org | 339 | <h2·id="org5ed28a3">How·do·I·turn·off·the·minor·mode·where·in·some·buffers?</h2> |
340 | <div·class="outline-text-2"·id="text-org | 340 | <div·class="outline-text-2"·id="text-org5ed28a3"> |
341 | <p> | 341 | <p> |
342 | The·best·way,·since·version·0.6.1c,·is·to·set·the·default·value·of·the | 342 | The·best·way,·since·version·0.6.1c,·is·to·set·the·default·value·of·the |
343 | variable·<a·href="snippet-reference.html#yas-dont-activate"><code>yas-dont-activate</code></a>·to·a·lambda·function·like·so: | 343 | variable·<a·href="snippet-reference.html#yas-dont-activate"><code>yas-dont-activate</code></a>·to·a·lambda·function·like·so: |
344 | </p> | 344 | </p> |
345 | <div·class="org-src-container"> | 345 | <div·class="org-src-container"> |
346 | <pre·class="src·src-emacs-lisp">(set-default·'yas-dont-activate | 346 | <pre·class="src·src-emacs-lisp">(set-default·'yas-dont-activate |
Offset 356, 17 lines modified | Offset 356, 17 lines modified | ||
356 | This·is·also·the·default·value·starting·for·that·version.·It·skips·the | 356 | This·is·also·the·default·value·starting·for·that·version.·It·skips·the |
357 | minor·mode·in·buffers·where·it·is·not·applicable·(no·snippet·tables), | 357 | minor·mode·in·buffers·where·it·is·not·applicable·(no·snippet·tables), |
358 | but·only·once·you·have·setup·your·yas-root-directory. | 358 | but·only·once·you·have·setup·your·yas-root-directory. |
359 | </p> | 359 | </p> |
360 | </div> | 360 | </div> |
361 | </div> | 361 | </div> |
362 | <div·id="outline-container-org | 362 | <div·id="outline-container-orgabaf537"·class="outline-2"> |
363 | <h2·id="org | 363 | <h2·id="orgabaf537">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</h2> |
364 | <div·class="outline-text-2"·id="text-org | 364 | <div·class="outline-text-2"·id="text-orgabaf537"> |
365 | <ul·class="org-ul"> | 365 | <ul·class="org-ul"> |
366 | <li><b>Note</b>:·This·question·applies·if·you're·still·defining·snippets | 366 | <li><b>Note</b>:·This·question·applies·if·you're·still·defining·snippets |
367 | whose·key·<i>is</i>·the·filename.·This·is·behavior·still·provided·by | 367 | whose·key·<i>is</i>·the·filename.·This·is·behavior·still·provided·by |
368 | version·0.6·for·backward·compatibilty,·but·is·somewhat | 368 | version·0.6·for·backward·compatibilty,·but·is·somewhat |
369 | deprecated…</li> | 369 | deprecated…</li> |
370 | </ul> | 370 | </ul> |
Offset 247, 98 lines modified | Offset 247, 98 lines modified | ||
247 | </div> | 247 | </div> |
248 | <div·id="content"> | 248 | <div·id="content"> |
249 | <h1·class="title">Writing·snippets</h1> | 249 | <h1·class="title">Writing·snippets</h1> |
250 | <div·id="table-of-contents"> | 250 | <div·id="table-of-contents"> |
251 | <h2>Table·of·Contents</h2> | 251 | <h2>Table·of·Contents</h2> |
252 | <div·id="text-table-of-contents"> | 252 | <div·id="text-table-of-contents"> |
253 | <ul> | 253 | <ul> |
254 | <li><a·href="#org | 254 | <li><a·href="#org0186f18">Snippet·development</a> |
255 | <ul> | 255 | <ul> |
256 | <li><a·href="#org | 256 | <li><a·href="#orgd354be9">Quickly·finding·snippets</a></li> |
257 | <li><a·href="#org | 257 | <li><a·href="#org474f36a">Using·the·<code>snippet-mode</code>·major·mode·</a></li> |
258 | </ul> | 258 | </ul> |
259 | </li> | 259 | </li> |
260 | <li><a·href="#org | 260 | <li><a·href="#org9c71a88">File·content</a> |
261 | <ul> | 261 | <ul> |
262 | <li><a·href="#org | 262 | <li><a·href="#org9af77dd"><code>#·key:</code>·snippet·abbrev</a></li> |
263 | <li><a·href="#org | 263 | <li><a·href="#orge91abec"><code>#·name:</code>·snippet·name</a></li> |
264 | <li><a·href="#org | 264 | <li><a·href="#org6668218"><code>#·condition:</code>·snippet·condition</a></li> |
265 | <li><a·href="#org | 265 | <li><a·href="#orgff84a71"><code>#·group:</code>·snippet·menu·grouping</a></li> |
266 | <li><a·href="#org | 266 | <li><a·href="#org51cab70"><code>#·expand-env:</code>·expand·environment</a></li> |
267 | <li><a·href="#org | 267 | <li><a·href="#orgef6d3c6"><code>#·binding:</code>·direct·keybinding</a></li> |
268 | <li><a·href="#org | 268 | <li><a·href="#orgc3e828e"><code>#·type:</code>·<code>snippet</code>·or·<code>command</code></a></li> |
269 | <li><a·href="#org | 269 | <li><a·href="#orga795c33"><code>#·uuid:</code>·unique·identifier</a></li> |
270 | <li><a·href="#org | 270 | <li><a·href="#org7d92176"><code>#·contributor:</code>·snippet·author</a></li> |
271 | </ul> | 271 | </ul> |
272 | </li> | 272 | </li> |
273 | <li><a·href="#org | 273 | <li><a·href="#orge46597f">Template·Syntax</a> |
274 | <ul> | 274 | <ul> |
275 | <li><a·href="#org | 275 | <li><a·href="#org75f5cac">Plain·Text</a></li> |
276 | <li><a·href="#org | 276 | <li><a·href="#org37dfc82">Embedded·Emacs-lisp·code</a> |
277 | <ul> | 277 | <ul> |
278 | <li><a·href="#org22 | 278 | <li><a·href="#org22d4476">Note:·backquote·expressions·should·not·modify·the·buffer</a></li> |
279 | </ul> | 279 | </ul> |
280 | </li> | 280 | </li> |
281 | <li><a·href="#org | 281 | <li><a·href="#org29cd282">Tab·stop·fields</a></li> |
282 | <li><a·href="#org | 282 | <li><a·href="#orgee5d6af">Placeholder·fields</a></li> |
283 | <li><a·href="#org | 283 | <li><a·href="#orga81dda2">Mirrors·</a></li> |
284 | <li><a·href="#org | 284 | <li><a·href="#orgb8eee36">Mirrors·with·transformations·</a></li> |
285 | <li><a·href="#org | 285 | <li><a·href="#org6cbed18">Fields·with·transformations</a></li> |
286 | <li><a·href="#org | 286 | <li><a·href="#orgb035dc6">Choosing·fields·value·from·a·list·and·other·tricks</a></li> |
287 | <li><a·href="#org | 287 | <li><a·href="#org0628eea">Nested·placeholder·fields</a></li> |
288 | <li><a·href="#org | 288 | <li><a·href="#org90b7865">Indentation·markers</a></li> |
289 | </ul> | 289 | </ul> |
290 | </li> | 290 | </li> |
291 | </ul> | 291 | </ul> |
292 | </div> | 292 | </div> |
293 | </div> | 293 | </div> |
294 | <div·id="outline-container-org | 294 | <div·id="outline-container-org0186f18"·class="outline-2"> |
295 | <h2·id="org | 295 | <h2·id="org0186f18">Snippet·development</h2> |
296 | <div·class="outline-text-2"·id="text-org | 296 | <div·class="outline-text-2"·id="text-org0186f18"> |
297 | </div> | 297 | </div> |
298 | <div·id="outline-container-org | 298 | <div·id="outline-container-orgd354be9"·class="outline-3"> |
299 | <h3·id="org | 299 | <h3·id="orgd354be9">Quickly·finding·snippets</h3> |
300 | <div·class="outline-text-3"·id="text-org | 300 | <div·class="outline-text-3"·id="text-orgd354be9"> |
301 | <p> | 301 | <p> |
302 | There·are·some·ways·you·can·quickly·find·a·snippet·file·or·create·a·new·one: | 302 | There·are·some·ways·you·can·quickly·find·a·snippet·file·or·create·a·new·one: |
303 | </p> | 303 | </p> |
304 | <ul·class="org-ul"> | 304 | <ul·class="org-ul"> |
305 | <li><p> | 305 | <li><p> |
306 | <code>M-x·yas-new-snippet</code>,·key·bindind:·<code>C-c·&·C-n</code> | 306 | <code>M-x·yas-new-snippet</code>,·key·bindind:·<code>C-c·&·C-n</code> |
307 | </p> | 307 | </p> |
308 | <p> | 308 | <p> |
309 | Creates·a·new·buffer·with·a·template·for·making·a·new·snippet.··The | 309 | Creates·a·new·buffer·with·a·template·for·making·a·new·snippet.··The |
310 | buffer·is·in·<code>snippet-mode</code>·(see·<a·href="#org | 310 | buffer·is·in·<code>snippet-mode</code>·(see·<a·href="#orgfc13143">below</a>).··When·you·are·done·editing |
311 | the·new·snippet,·use·<a·href="#org | 311 | the·new·snippet,·use·<a·href="#orgbe300c4"><code>C-c·C-c</code></a>·to·save·it. |
312 | </p></li> | 312 | </p></li> |
313 | <li><p> | 313 | <li><p> |
314 | <code>M-x·yas-visit-snippet-file</code>,·key·binding:·<code>C-c·&·C-v</code> | 314 | <code>M-x·yas-visit-snippet-file</code>,·key·binding:·<code>C-c·&·C-v</code> |
315 | </p> | 315 | </p> |
316 | <p> | 316 | <p> |
317 | Prompts·you·for·possible·snippet·expansions·like | 317 | Prompts·you·for·possible·snippet·expansions·like |
318 | <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>,·but·instead·of·expanding·it,·takes·you·directly | 318 | <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>,·but·instead·of·expanding·it,·takes·you·directly |
319 | to·the·snippet·definition's·file,·if·it·exists. | 319 | to·the·snippet·definition's·file,·if·it·exists. |
320 | </p></li> | 320 | </p></li> |
321 | </ul> | 321 | </ul> |
322 | <p> | 322 | <p> |
323 | Once·you·find·this·file·it·will·be·set·to·<code>snippet-mode</code>·(see·<a·href="#org | 323 | Once·you·find·this·file·it·will·be·set·to·<code>snippet-mode</code>·(see·<a·href="#orgfc13143">ahead</a>) |
324 | and·you·can·start·editing·your·snippet. | 324 | and·you·can·start·editing·your·snippet. |
325 | </p> | 325 | </p> |
326 | </div> | 326 | </div> |
327 | </div> | 327 | </div> |
328 | <div·id="outline-container-org | 328 | <div·id="outline-container-org474f36a"·class="outline-3"> |
329 | <h3·id="org | 329 | <h3·id="org474f36a">Using·the·<code>snippet-mode</code>·major·mode·<a·id="orgfc13143"></a></h3> |
330 | <div·class="outline-text-3"·id="text-org | 330 | <div·class="outline-text-3"·id="text-org474f36a"> |
331 | <p> | 331 | <p> |
332 | There·is·a·major·mode·<code>snippet-mode</code>·to·edit·snippets.·You·can·set·the | 332 | There·is·a·major·mode·<code>snippet-mode</code>·to·edit·snippets.·You·can·set·the |
333 | buffer·to·this·mode·with·<code>M-x·snippet-mode</code>.·It·provides·reasonably | 333 | buffer·to·this·mode·with·<code>M-x·snippet-mode</code>.·It·provides·reasonably |
334 | useful·syntax·highlighting. | 334 | useful·syntax·highlighting. |
335 | </p> | 335 | </p> |
336 | <p> | 336 | <p> |
Offset 353, 15 lines modified | Offset 353, 15 lines modified | ||
353 | <p> | 353 | <p> |
354 | Prompts·for·a·snippet·table·(with·a·default·based·on·snippet's | 354 | Prompts·for·a·snippet·table·(with·a·default·based·on·snippet's |
355 | major·mode)·and·loads·the·snippet·currently·being·edited. | 355 | major·mode)·and·loads·the·snippet·currently·being·edited. |
356 | </p></li> | 356 | </p></li> |
357 | <li><p> | 357 | <li><p> |
358 | <code>M-x·yas-load-snippet-buffer-and-close</code>,·key·binding:·<code>C-c·C-c</code> | 358 | <code>M-x·yas-load-snippet-buffer-and-close</code>,·key·binding:·<code>C-c·C-c</code> |
359 | <a·id="org | 359 | <a·id="orgbe300c4"></a> |
360 | </p> | 360 | </p> |
361 | <p> | 361 | <p> |
362 | Like·<code>yas-load-snippet-buffer</code>,·but·also·saves·the·snippet·and | 362 | Like·<code>yas-load-snippet-buffer</code>,·but·also·saves·the·snippet·and |
363 | calls·<code>quit-window</code>.··The·destination·is·decided·based·on·the | 363 | calls·<code>quit-window</code>.··The·destination·is·decided·based·on·the |
364 | chosen·snippet·table·and·snippet·collection·directly·(defaulting·to | 364 | chosen·snippet·table·and·snippet·collection·directly·(defaulting·to |
365 | the·first·directory·in·<code>yas-snippet-dirs</code>·(see·<a·href="snippet-organization.html">Organizing·Snippets</a> | 365 | the·first·directory·in·<code>yas-snippet-dirs</code>·(see·<a·href="snippet-organization.html">Organizing·Snippets</a> |
Offset 383, 17 lines modified | Offset 383, 17 lines modified | ||
383 | There·are·also·<i>snippets·for·writing·snippets</i>:·<code>vars</code>,·<code>$f</code>·and·<code>$m</code> | 383 | There·are·also·<i>snippets·for·writing·snippets</i>:·<code>vars</code>,·<code>$f</code>·and·<code>$m</code> |
384 | :-). | 384 | :-). |
385 | </p> | 385 | </p> |
386 | </div> | 386 | </div> |
387 | </div> | 387 | </div> |
388 | </div> | 388 | </div> |
389 | <div·id="outline-container-org | 389 | <div·id="outline-container-org9c71a88"·class="outline-2"> |
390 | <h2·id="org | 390 | <h2·id="org9c71a88">File·content</h2> |
391 | <div·class="outline-text-2"·id="text-org | 391 | <div·class="outline-text-2"·id="text-org9c71a88"> |
392 | <p> | 392 | <p> |
393 | A·file·defining·a·snippet·generally·contains·the·template·to·be | 393 | A·file·defining·a·snippet·generally·contains·the·template·to·be |
Max diff block lines reached; 16722/24182 bytes (69.15%) of diff not shown. |
Offset 247, 42 lines modified | Offset 247, 42 lines modified | ||
247 | </div> | 247 | </div> |
248 | <div·id="content"> | 248 | <div·id="content"> |
249 | <h1·class="title">Expanding·snippets</h1> | 249 | <h1·class="title">Expanding·snippets</h1> |
250 | <div·id="table-of-contents"> | 250 | <div·id="table-of-contents"> |
251 | <h2>Table·of·Contents</h2> | 251 | <h2>Table·of·Contents</h2> |
252 | <div·id="text-table-of-contents"> | 252 | <div·id="text-table-of-contents"> |
253 | <ul> | 253 | <ul> |
254 | <li><a·href="#org | 254 | <li><a·href="#org3e8b1cc">Triggering·expansion</a> |
255 | <ul> | 255 | <ul> |
256 | <li><a·href="#org | 256 | <li><a·href="#org2f9aa75">Trigger·key</a> |
257 | <ul> | 257 | <ul> |
258 | <li><a·href="#org | 258 | <li><a·href="#org493452b">Fallback·behaviour</a></li> |
259 | </ul> | 259 | </ul> |
260 | </li> | 260 | </li> |
261 | <li><a·href="#org | 261 | <li><a·href="#org30b7538">Insert·at·point</a> |
262 | <ul> | 262 | <ul> |
263 | <li><a·href="#org | 263 | <li><a·href="#orge9274b3">Inserting·region·or·register·contents·into·snippet</a></li> |
264 | </ul> | 264 | </ul> |
265 | </li> | 265 | </li> |
266 | <li><a·href="#org | 266 | <li><a·href="#org6f84175">Snippet·keybinding</a></li> |
267 | <li><a·href="#org | 267 | <li><a·href="#org54f8d91">Expanding·from·the·menu</a></li> |
268 | <li><a·href="#org | 268 | <li><a·href="#org605aa89">Expanding·with·<code>hippie-expand</code></a></li> |
269 | <li><a·href="#org | 269 | <li><a·href="#orgdfef2a0">Expanding·from·emacs-lisp·code</a></li> |
270 | </ul> | 270 | </ul> |
271 | </li> | 271 | </li> |
272 | <li><a·href="#org | 272 | <li><a·href="#org3cce58b">Controlling·expansion</a> |
273 | <ul> | 273 | <ul> |
274 | <li><a·href="#org | 274 | <li><a·href="#orgb48e23c">Eligible·snippets</a></li> |
275 | <li><a·href="#org | 275 | <li><a·href="#org10e07b8">The·condition·system·</a></li> |
276 | <li><a·href="#org | 276 | <li><a·href="#orgaf52be1">Multiples·snippet·with·the·same·key</a> |
277 | <ul> | 277 | <ul> |
278 | <li><a·href="#org | 278 | <li><a·href="#orgb6c1b42">Use·the·X·window·system</a></li> |
279 | <li><a·href="#org | 279 | <li><a·href="#org1180e4d">Minibuffer·prompting</a></li> |
280 | <li><a·href="#org | 280 | <li><a·href="#org07594f2">Use·<code>dropdown-menu.el</code></a></li> |
281 | <li><a·href="#org | 281 | <li><a·href="#org080665b">Roll·your·own</a></li> |
282 | </ul> | 282 | </ul> |
283 | </li> | 283 | </li> |
284 | </ul> | 284 | </ul> |
285 | </li> | 285 | </li> |
286 | </ul> | 286 | </ul> |
287 | </div> | 287 | </div> |
288 | </div> | 288 | </div> |
Offset 291, 17 lines modified | Offset 291, 17 lines modified | ||
291 | </p> | 291 | </p> |
292 | <p> | 292 | <p> |
293 | Maybe,·you'll·want·some·snippets·to·be·expanded·in·a·particular | 293 | Maybe,·you'll·want·some·snippets·to·be·expanded·in·a·particular |
294 | mode,·or·only·under·certain·conditions,·or·be·prompted·using | 294 | mode,·or·only·under·certain·conditions,·or·be·prompted·using |
295 | </p> | 295 | </p> |
296 | <div·id="outline-container-org | 296 | <div·id="outline-container-org3e8b1cc"·class="outline-2"> |
297 | <h2·id="org | 297 | <h2·id="org3e8b1cc">Triggering·expansion</h2> |
298 | <div·class="outline-text-2"·id="text-org | 298 | <div·class="outline-text-2"·id="text-org3e8b1cc"> |
299 | <p> | 299 | <p> |
300 | You·can·use·YASnippet·to·expand·snippets·in·different·ways: | 300 | You·can·use·YASnippet·to·expand·snippets·in·different·ways: |
301 | </p> | 301 | </p> |
302 | <ul·class="org-ul"> | 302 | <ul·class="org-ul"> |
303 | <li>When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active: | 303 | <li>When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active: |
304 | <ul·class="org-ul"> | 304 | <ul·class="org-ul"> |
Offset 321, 17 lines modified | Offset 321, 17 lines modified | ||
321 | <li>Use·m2m's·excellent·auto-complete | 321 | <li>Use·m2m's·excellent·auto-complete |
322 | TODO:·example·for·this</li> | 322 | TODO:·example·for·this</li> |
323 | <li>Expanding·from·emacs-lisp·code</li> | 323 | <li>Expanding·from·emacs-lisp·code</li> |
324 | </ul> | 324 | </ul> |
325 | </div> | 325 | </div> |
326 | <div·id="outline-container-org | 326 | <div·id="outline-container-org2f9aa75"·class="outline-3"> |
327 | <h3·id="org | 327 | <h3·id="org2f9aa75">Trigger·key</h3> |
328 | <div·class="outline-text-3"·id="text-org | 328 | <div·class="outline-text-3"·id="text-org2f9aa75"> |
329 | <p> | 329 | <p> |
330 | <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·tries·to·expand·a·<i>snippet·abbrev</i>·(also·known·as | 330 | <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·tries·to·expand·a·<i>snippet·abbrev</i>·(also·known·as |
331 | <i>snippet·key</i>)·before·point.··YASnippet·also·provides·a·<i>conditional | 331 | <i>snippet·key</i>)·before·point.··YASnippet·also·provides·a·<i>conditional |
332 | binding</i>·for·this·command:·the·variable·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·contains·a | 332 | binding</i>·for·this·command:·the·variable·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·contains·a |
333 | special·value·which,·when·bound·in·a·keymap,·tells·Emacs·to·call | 333 | special·value·which,·when·bound·in·a·keymap,·tells·Emacs·to·call |
334 | <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·if·and·only·if·there·is·a·snippet·abbrev·before·point. | 334 | <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·if·and·only·if·there·is·a·snippet·abbrev·before·point. |
335 | If·there·is·no·snippet·to·expand,·Emacs·will·behave·as·if·<a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a> | 335 | If·there·is·no·snippet·to·expand,·Emacs·will·behave·as·if·<a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a> |
Offset 379, 29 lines modified | Offset 379, 29 lines modified | ||
379 | <p> | 379 | <p> |
380 | When·you·use·<a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·you·can·also·selectively·disable | 380 | When·you·use·<a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·you·can·also·selectively·disable |
381 | YASnippet·in·some·buffers·by·calling·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·with·a·negative | 381 | YASnippet·in·some·buffers·by·calling·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·with·a·negative |
382 | argument·in·the·buffer's·mode·hook. | 382 | argument·in·the·buffer's·mode·hook. |
383 | </p> | 383 | </p> |
384 | </div> | 384 | </div> |
385 | <div·id="outline-container-org | 385 | <div·id="outline-container-org493452b"·class="outline-4"> |
386 | <h4·id="org | 386 | <h4·id="org493452b">Fallback·behaviour</h4> |
387 | <div·class="outline-text-4"·id="text-org | 387 | <div·class="outline-text-4"·id="text-org493452b"> |
388 | <p> | 388 | <p> |
389 | YASnippet·used·to·support·a·more·complicated·way·of·sharing | 389 | YASnippet·used·to·support·a·more·complicated·way·of·sharing |
390 | keybindings·before·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·was·added.··This·is·now | 390 | keybindings·before·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·was·added.··This·is·now |
391 | obsolete. | 391 | obsolete. |
392 | </p> | 392 | </p> |
393 | </div> | 393 | </div> |
394 | </div> | 394 | </div> |
395 | </div> | 395 | </div> |
396 | <div·id="outline-container-org | 396 | <div·id="outline-container-org30b7538"·class="outline-3"> |
397 | <h3·id="org | 397 | <h3·id="org30b7538">Insert·at·point</h3> |
398 | <div·class="outline-text-3"·id="text-org | 398 | <div·class="outline-text-3"·id="text-org30b7538"> |
399 | <p> | 399 | <p> |
400 | The·command·<a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>·lets·you·insert·snippets·at·point | 400 | The·command·<a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>·lets·you·insert·snippets·at·point |
401 | <i>for·your·current·major·mode</i>.·It·prompts·you·for·the·snippet·key | 401 | <i>for·your·current·major·mode</i>.·It·prompts·you·for·the·snippet·key |
402 | first,·and·then·for·a·snippet·template·if·more·than·one·template | 402 | first,·and·then·for·a·snippet·template·if·more·than·one·template |
403 | exists·for·the·same·key. | 403 | exists·for·the·same·key. |
404 | </p> | 404 | </p> |
Offset 413, 17 lines modified | Offset 413, 17 lines modified | ||
413 | <p> | 413 | <p> |
414 | The·prompting·methods·used·are·again·controlled·by | 414 | The·prompting·methods·used·are·again·controlled·by |
415 | <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>. | 415 | <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>. |
416 | </p> | 416 | </p> |
417 | </div> | 417 | </div> |
418 | <div·id="outline-container-org | 418 | <div·id="outline-container-orge9274b3"·class="outline-4"> |
419 | <h4·id="org | 419 | <h4·id="orge9274b3">Inserting·region·or·register·contents·into·snippet</h4> |
420 | <div·class="outline-text-4"·id="text-org | 420 | <div·class="outline-text-4"·id="text-orge9274b3"> |
421 | <p> | 421 | <p> |
422 | It's·often·useful·to·inject·already·written·text·in·the·middle·of·a | 422 | It's·often·useful·to·inject·already·written·text·in·the·middle·of·a |
423 | snippet.··The·variable·<a·href="snippet-reference.html#yas-wrap-around-region"><code>yas-wrap-around-region</code></a>·when·to·t·substitute | 423 | snippet.··The·variable·<a·href="snippet-reference.html#yas-wrap-around-region"><code>yas-wrap-around-region</code></a>·when·to·t·substitute |
424 | the·region·contents·into·the·<code>$0</code>·placeholder·of·a·snippet·expanded·by | 424 | the·region·contents·into·the·<code>$0</code>·placeholder·of·a·snippet·expanded·by |
425 | <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>.··Setting·it·to·a·character·value·(e.g.·<code>?0</code>) | 425 | <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>.··Setting·it·to·a·character·value·(e.g.·<code>?0</code>) |
426 | will·insert·the·contents·of·corresponding·register. | 426 | will·insert·the·contents·of·corresponding·register. |
427 | </p> | 427 | </p> |
Offset 434, 49 lines modified | Offset 434, 49 lines modified | ||
Max diff block lines reached; 8958/15704 bytes (57.04%) of diff not shown. |
Offset 247, 19 lines modified | Offset 247, 19 lines modified | ||
247 | </div> | 247 | </div> |
248 | <div·id="content"> | 248 | <div·id="content"> |
249 | <h1·class="title">YASnippet·menu</h1> | 249 | <h1·class="title">YASnippet·menu</h1> |
250 | <div·id="table-of-contents"> | 250 | <div·id="table-of-contents"> |
251 | <h2>Table·of·Contents</h2> | 251 | <h2>Table·of·Contents</h2> |
252 | <div·id="text-table-of-contents"> | 252 | <div·id="text-table-of-contents"> |
253 | <ul> | 253 | <ul> |
254 | <li><a·href="#org7 | 254 | <li><a·href="#org67b0443">Loading·snippets·from·menu</a></li> |
255 | <li><a·href="#org | 255 | <li><a·href="#orgb0159c0">Snippet·menu·behavior</a></li> |
256 | <li><a·href="#org | 256 | <li><a·href="#orgc129fb8">Controlling·indenting</a></li> |
257 | <li><a·href="#org | 257 | <li><a·href="#orgcbd6676">Prompting·method</a></li> |
258 | <li><a·href="#org | 258 | <li><a·href="#orgbe550cb">Misc</a></li> |
259 | </ul> | 259 | </ul> |
260 | </div> | 260 | </div> |
261 | </div> | 261 | </div> |
262 | <p> | 262 | <p> |
263 | When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active,·YASnippet·will·setup·a·menu·just·after | 263 | When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active,·YASnippet·will·setup·a·menu·just·after |
264 | the·"Buffers"·menu·in·the·menubar. | 264 | the·"Buffers"·menu·in·the·menubar. |
265 | </p> | 265 | </p> |
Offset 282, 33 lines modified | Offset 282, 33 lines modified | ||
282 | <div·class="figure"> | 282 | <div·class="figure"> |
283 | <p><img·src="./images/menu-1.png"·alt="menu-1.png"·/> | 283 | <p><img·src="./images/menu-1.png"·alt="menu-1.png"·/> |
284 | </p> | 284 | </p> |
285 | </div> | 285 | </div> |
286 | <div·id="outline-container-org7 | 286 | <div·id="outline-container-org67b0443"·class="outline-2"> |
287 | <h2·id="org7 | 287 | <h2·id="org67b0443">Loading·snippets·from·menu</h2> |
288 | <div·class="outline-text-2"·id="text-org7 | 288 | <div·class="outline-text-2"·id="text-org67b0443"> |
289 | <p> | 289 | <p> |
290 | Invoking·"Load·snippets…"·from·the·menu·invokes·<a·href="snippet-reference.html#yas-load-directory"><code>yas-load-directory</code></a> | 290 | Invoking·"Load·snippets…"·from·the·menu·invokes·<a·href="snippet-reference.html#yas-load-directory"><code>yas-load-directory</code></a> |
291 | and·prompts·you·for·a·snippet·directory·hierarchy·to·load. | 291 | and·prompts·you·for·a·snippet·directory·hierarchy·to·load. |
292 | </p> | 292 | </p> |
293 | <p> | 293 | <p> |
294 | Also·useful·is·the·"Reload·everything"·item·to·invoke·<a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a> | 294 | Also·useful·is·the·"Reload·everything"·item·to·invoke·<a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a> |
295 | which·uncondionally·reloads·all·the·snippets·directories·defined·in | 295 | which·uncondionally·reloads·all·the·snippets·directories·defined·in |
296 | <a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·and·rebuilds·the·menus. | 296 | <a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·and·rebuilds·the·menus. |
297 | </p> | 297 | </p> |
298 | </div> | 298 | </div> |
299 | </div> | 299 | </div> |
300 | <div·id="outline-container-org | 300 | <div·id="outline-container-orgb0159c0"·class="outline-2"> |
301 | <h2·id="org | 301 | <h2·id="orgb0159c0">Snippet·menu·behavior</h2> |
302 | <div·class="outline-text-2"·id="text-org | 302 | <div·class="outline-text-2"·id="text-orgb0159c0"> |
303 | <p> | 303 | <p> |
304 | YASnippet·will·list·in·this·section·all·the·loaded·snippet·definitions | 304 | YASnippet·will·list·in·this·section·all·the·loaded·snippet·definitions |
305 | organized·by·snippet·table·name. | 305 | organized·by·snippet·table·name. |
306 | </p> | 306 | </p> |
307 | <p> | 307 | <p> |
308 | You·can·use·this·section·to·explore·currently·loaded·snippets.·If·you | 308 | You·can·use·this·section·to·explore·currently·loaded·snippets.·If·you |
Offset 336, 38 lines modified | Offset 336, 38 lines modified | ||
336 | <p> | 336 | <p> |
337 | These·customizations·can·also·be·found·in·the·menu·itself,·under·the | 337 | These·customizations·can·also·be·found·in·the·menu·itself,·under·the |
338 | "Snippet·menu·behavior"·submenu. | 338 | "Snippet·menu·behavior"·submenu. |
339 | </p> | 339 | </p> |
340 | </div> | 340 | </div> |
341 | </div> | 341 | </div> |
342 | <div·id="outline-container-org | 342 | <div·id="outline-container-orgc129fb8"·class="outline-2"> |
343 | <h2·id="org | 343 | <h2·id="orgc129fb8">Controlling·indenting</h2> |
344 | <div·class="outline-text-2"·id="text-org | 344 | <div·class="outline-text-2"·id="text-orgc129fb8"> |
345 | <p> | 345 | <p> |
346 | The·"Indenting"·submenu·contains·options·to·control·the·values·of | 346 | The·"Indenting"·submenu·contains·options·to·control·the·values·of |
347 | <a·href="snippet-reference.html#yas-indent-line"><code>yas-indent-line</code></a>·and·<a·href="snippet-reference.html#yas-also-auto-indent-first-line"><code>yas-also-auto-indent-first-line</code></a>.·See | 347 | <a·href="snippet-reference.html#yas-indent-line"><code>yas-indent-line</code></a>·and·<a·href="snippet-reference.html#yas-also-auto-indent-first-line"><code>yas-also-auto-indent-first-line</code></a>.·See |
348 | <a·href="./snippet-development.html">Writing·snippets</a>. | 348 | <a·href="./snippet-development.html">Writing·snippets</a>. |
349 | </p> | 349 | </p> |
350 | </div> | 350 | </div> |
351 | </div> | 351 | </div> |
352 | <div·id="outline-container-org | 352 | <div·id="outline-container-orgcbd6676"·class="outline-2"> |
353 | <h2·id="org | 353 | <h2·id="orgcbd6676">Prompting·method</h2> |
354 | <div·class="outline-text-2"·id="text-org | 354 | <div·class="outline-text-2"·id="text-orgcbd6676"> |
355 | <p> | 355 | <p> |
356 | The·"Prompting·method"·submenu·contains·options·to·control·the·value·of | 356 | The·"Prompting·method"·submenu·contains·options·to·control·the·value·of |
357 | <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.·See·<a·href="./snippet-expansion.html">Expanding·snippets</a>. | 357 | <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.·See·<a·href="./snippet-expansion.html">Expanding·snippets</a>. |
358 | </p> | 358 | </p> |
359 | </div> | 359 | </div> |
360 | </div> | 360 | </div> |
361 | <div·id="outline-container-org | 361 | <div·id="outline-container-orgbe550cb"·class="outline-2"> |
362 | <h2·id="org | 362 | <h2·id="orgbe550cb">Misc</h2> |
363 | <div·class="outline-text-2"·id="text-org | 363 | <div·class="outline-text-2"·id="text-orgbe550cb"> |
364 | <p> | 364 | <p> |
365 | The·"Misc"·submenu·contains·options·to·control·the·values·of·more | 365 | The·"Misc"·submenu·contains·options·to·control·the·values·of·more |
366 | variables. | 366 | variables. |
367 | </p> | 367 | </p> |
368 | </div> | 368 | </div> |
369 | </div> | 369 | </div> |
370 | </div> | 370 | </div> |
Offset 247, 28 lines modified | Offset 247, 28 lines modified | ||
247 | </div> | 247 | </div> |
248 | <div·id="content"> | 248 | <div·id="content"> |
249 | <h1·class="title">Organizing·snippets</h1> | 249 | <h1·class="title">Organizing·snippets</h1> |
250 | <div·id="table-of-contents"> | 250 | <div·id="table-of-contents"> |
251 | <h2>Table·of·Contents</h2> | 251 | <h2>Table·of·Contents</h2> |
252 | <div·id="text-table-of-contents"> | 252 | <div·id="text-table-of-contents"> |
253 | <ul> | 253 | <ul> |
254 | <li><a·href="#orgc | 254 | <li><a·href="#orgc0154e6">Basic·structure</a></li> |
255 | <li><a·href="#org | 255 | <li><a·href="#orgd52d6ee">Setting·up·<code>yas-snippet-dirs</code></a></li> |
256 | <li><a·href="#org | 256 | <li><a·href="#org1c7bb63">The·<code>.yas-parents</code>·file</a></li> |
257 | <li><a·href="#org | 257 | <li><a·href="#orgf6c8173"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</a></li> |
258 | <li><a·href="#org | 258 | <li><a·href="#orgbc131fd">The·<code>.yas-setup.el</code>·file</a></li> |
259 | <li><a·href="#org | 259 | <li><a·href="#org735730c">The·<code>.yas-compiled-snippet.el</code>·file</a></li> |
260 | <li><a·href="#org | 260 | <li><a·href="#orge411b2b">The·<code>.yas-skip</code>·file</a></li> |
261 | </ul> | 261 | </ul> |
262 | </div> | 262 | </div> |
263 | </div> | 263 | </div> |
264 | <div·id="outline-container-orgc | 264 | <div·id="outline-container-orgc0154e6"·class="outline-2"> |
265 | <h2·id="orgc | 265 | <h2·id="orgc0154e6">Basic·structure</h2> |
266 | <div·class="outline-text-2"·id="text-orgc | 266 | <div·class="outline-text-2"·id="text-orgc0154e6"> |
267 | <p> | 267 | <p> |
268 | Snippet·collections·can·be·stored·in·plain·text·files.·They·are | 268 | Snippet·collections·can·be·stored·in·plain·text·files.·They·are |
269 | arranged·by·sub-directories·naming·<b>snippet·tables</b>.··These·mostly | 269 | arranged·by·sub-directories·naming·<b>snippet·tables</b>.··These·mostly |
270 | name·Emacs·major·mode·names. | 270 | name·Emacs·major·mode·names. |
271 | </p> | 271 | </p> |
272 | <pre·class="example"> | 272 | <pre·class="example"> |
Offset 286, 17 lines modified | Offset 286, 17 lines modified | ||
286 | The·collections·are·loaded·into·<b>snippet·tables</b>·which·the | 286 | The·collections·are·loaded·into·<b>snippet·tables</b>·which·the |
287 | triggering·mechanism·(see·<a·href="snippet-expansion.html">Expanding·Snippets</a>)·looks·up·and | 287 | triggering·mechanism·(see·<a·href="snippet-expansion.html">Expanding·Snippets</a>)·looks·up·and |
288 | (hopefully)·causes·the·right·snippet·to·be·expanded·for·you. | 288 | (hopefully)·causes·the·right·snippet·to·be·expanded·for·you. |
289 | </p> | 289 | </p> |
290 | </div> | 290 | </div> |
291 | </div> | 291 | </div> |
292 | <div·id="outline-container-org | 292 | <div·id="outline-container-orgd52d6ee"·class="outline-2"> |
293 | <h2·id="org | 293 | <h2·id="orgd52d6ee">Setting·up·<code>yas-snippet-dirs</code></h2> |
294 | <div·class="outline-text-2"·id="text-org | 294 | <div·class="outline-text-2"·id="text-orgd52d6ee"> |
295 | <p> | 295 | <p> |
296 | The·emacs·variable·<a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·tells·YASnippet | 296 | The·emacs·variable·<a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·tells·YASnippet |
297 | which·collections·to·consider.·It's·used·when·you·activate | 297 | which·collections·to·consider.·It's·used·when·you·activate |
298 | <a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·or·call | 298 | <a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·or·call |
299 | <a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>·interactively. | 299 | <a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>·interactively. |
300 | </p> | 300 | </p> |
Offset 330, 17 lines modified | Offset 330, 17 lines modified | ||
330 | Collections·appearing·earlier·in·the·list·override·snippets·with·same·names | 330 | Collections·appearing·earlier·in·the·list·override·snippets·with·same·names |
331 | appearing·in·collections·later·in·the·list.·<a·href="snippet-reference.html#yas-new-snippet"><code>yas-new-snippet</code></a>·always·stores | 331 | appearing·in·collections·later·in·the·list.·<a·href="snippet-reference.html#yas-new-snippet"><code>yas-new-snippet</code></a>·always·stores |
332 | snippets·in·the·first·collection. | 332 | snippets·in·the·first·collection. |
333 | </p> | 333 | </p> |
334 | </div> | 334 | </div> |
335 | </div> | 335 | </div> |
336 | <div·id="outline-container-org | 336 | <div·id="outline-container-org1c7bb63"·class="outline-2"> |
337 | <h2·id="org | 337 | <h2·id="org1c7bb63">The·<code>.yas-parents</code>·file</h2> |
338 | <div·class="outline-text-2"·id="text-org | 338 | <div·class="outline-text-2"·id="text-org1c7bb63"> |
339 | <p> | 339 | <p> |
340 | It's·very·useful·to·have·certain·modes·share·snippets·between | 340 | It's·very·useful·to·have·certain·modes·share·snippets·between |
341 | themselves.·To·do·this,·choose·a·mode·subdirectory·and·place·a | 341 | themselves.·To·do·this,·choose·a·mode·subdirectory·and·place·a |
342 | <code>.yas-parents</code>·containing·a·whitespace-separated·list·of·other·mode | 342 | <code>.yas-parents</code>·containing·a·whitespace-separated·list·of·other·mode |
343 | names.·When·you·reload·those·modes·become·parents·of·the·original | 343 | names.·When·you·reload·those·modes·become·parents·of·the·original |
344 | mode. | 344 | mode. |
345 | </p> | 345 | </p> |
Offset 360, 17 lines modified | Offset 360, 17 lines modified | ||
360 | 360 | ||
361 | ····`--·time | 361 | ····`--·time |
362 | </pre> | 362 | </pre> |
363 | </div> | 363 | </div> |
364 | </div> | 364 | </div> |
365 | <div·id="outline-container-org | 365 | <div·id="outline-container-orgf6c8173"·class="outline-2"> |
366 | <h2·id="org | 366 | <h2·id="orgf6c8173"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</h2> |
367 | <div·class="outline-text-2"·id="text-org | 367 | <div·class="outline-text-2"·id="text-orgf6c8173"> |
368 | <p> | 368 | <p> |
369 | If·you·place·an·empty·plain·text·file·<code>.yas-make-groups</code>·inside·one | 369 | If·you·place·an·empty·plain·text·file·<code>.yas-make-groups</code>·inside·one |
370 | of·the·mode·directories,·the·names·of·these·sub-directories·are | 370 | of·the·mode·directories,·the·names·of·these·sub-directories·are |
371 | considered·groups·of·snippets·and·<a·href="snippet-menu.html">the·menu</a>·is·organized·much·more | 371 | considered·groups·of·snippets·and·<a·href="snippet-menu.html">the·menu</a>·is·organized·much·more |
372 | cleanly: | 372 | cleanly: |
373 | </p> | 373 | </p> |
Offset 404, 28 lines modified | Offset 404, 28 lines modified | ||
404 | <p> | 404 | <p> |
405 | Yet·another·way·to·create·a·nice·snippet·menu·is·to·write·into | 405 | Yet·another·way·to·create·a·nice·snippet·menu·is·to·write·into |
406 | <code>.yas-make-groups</code>·a·menu·definition.·TODO | 406 | <code>.yas-make-groups</code>·a·menu·definition.·TODO |
407 | </p> | 407 | </p> |
408 | </div> | 408 | </div> |
409 | </div> | 409 | </div> |
410 | <div·id="outline-container-org | 410 | <div·id="outline-container-orgbc131fd"·class="outline-2"> |
411 | <h2·id="org | 411 | <h2·id="orgbc131fd">The·<code>.yas-setup.el</code>·file</h2> |
412 | <div·class="outline-text-2"·id="text-org | 412 | <div·class="outline-text-2"·id="text-orgbc131fd"> |
413 | <p> | 413 | <p> |
414 | If·there·is·file·named·<code>.yas-setup.el</code>·in·a·mode's·snippet | 414 | If·there·is·file·named·<code>.yas-setup.el</code>·in·a·mode's·snippet |
415 | subdirectory,·it·is·loaded·along·with·the·snippets.··Utility | 415 | subdirectory,·it·is·loaded·along·with·the·snippets.··Utility |
416 | functions·used·by·the·snippets·can·be·put·here. | 416 | functions·used·by·the·snippets·can·be·put·here. |
417 | </p> | 417 | </p> |
418 | </div> | 418 | </div> |
419 | </div> | 419 | </div> |
420 | <div·id="outline-container-org | 420 | <div·id="outline-container-org735730c"·class="outline-2"> |
421 | <h2·id="org | 421 | <h2·id="org735730c">The·<code>.yas-compiled-snippet.el</code>·file</h2> |
422 | <div·class="outline-text-2"·id="text-org | 422 | <div·class="outline-text-2"·id="text-org735730c"> |
423 | <p> | 423 | <p> |
424 | You·may·compile·a·top-level·snippet·directory·with·the | 424 | You·may·compile·a·top-level·snippet·directory·with·the |
425 | <code>yas-compile-directory</code>·function,·which·will·create·a | 425 | <code>yas-compile-directory</code>·function,·which·will·create·a |
426 | <code>.yas-compiled-snippets.el</code>·file·under·each·mode·subdirectory, | 426 | <code>.yas-compiled-snippets.el</code>·file·under·each·mode·subdirectory, |
427 | which·contains·definitions·for·all·snippets·in·the·subdirectory. | 427 | which·contains·definitions·for·all·snippets·in·the·subdirectory. |
428 | Compilation·helps·improve·loading·time. | 428 | Compilation·helps·improve·loading·time. |
429 | </p> | 429 | </p> |
Offset 433, 17 lines modified | Offset 433, 17 lines modified | ||
433 | <p> | 433 | <p> |
434 | Alternatively,·you·may·compile·all·directories·in·the·list | 434 | Alternatively,·you·may·compile·all·directories·in·the·list |
435 | <code>yas-snippet-dirs</code>·with·the·<code>yas-recompile-all</code>·function. | 435 | <code>yas-snippet-dirs</code>·with·the·<code>yas-recompile-all</code>·function. |
436 | </p> | 436 | </p> |
437 | </div> | 437 | </div> |
438 | </div> | 438 | </div> |
439 | <div·id="outline-container-org | 439 | <div·id="outline-container-orge411b2b"·class="outline-2"> |
440 | <h2·id="org | 440 | <h2·id="orge411b2b">The·<code>.yas-skip</code>·file</h2> |
441 | <div·class="outline-text-2"·id="text-org | 441 | <div·class="outline-text-2"·id="text-orge411b2b"> |
442 | <p> | 442 | <p> |
443 | A·<code>.yas-skip</code>·file·in·a·mode's·snippet·subdirectory·tells·YASnippet | 443 | A·<code>.yas-skip</code>·file·in·a·mode's·snippet·subdirectory·tells·YASnippet |
444 | not·to·load·snippets·from·there. | 444 | not·to·load·snippets·from·there. |
445 | </p> | 445 | </p> |
446 | </div> | 446 | </div> |
Max diff block lines reached; 8/6582 bytes (0.12%) of diff not shown. |
Offset 247, 15 lines modified | Offset 247, 15 lines modified | ||
247 | </div> | 247 | </div> |
248 | <div·id="content"> | 248 | <div·id="content"> |
249 | <h1·class="title">Reference</h1> | 249 | <h1·class="title">Reference</h1> |
250 | <div·id="table-of-contents"> | 250 | <div·id="table-of-contents"> |
251 | <h2>Table·of·Contents</h2> | 251 | <h2>Table·of·Contents</h2> |
252 | <div·id="text-table-of-contents"> | 252 | <div·id="text-table-of-contents"> |
253 | <ul> | 253 | <ul> |
254 | <li><a·href="#org | 254 | <li><a·href="#org1f1fbed">Interactive·functions</a> |
255 | <ul> | 255 | <ul> |
256 | <li><a·href="#yas-load-snippet-buffer-and-close"><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&optional</i>·<code>kill</code>)</a></li> | 256 | <li><a·href="#yas-load-snippet-buffer-and-close"><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&optional</i>·<code>kill</code>)</a></li> |
257 | <li><a·href="#yas-expand-from-trigger-key"><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&optional</i>·<code>field</code>)</a></li> | 257 | <li><a·href="#yas-expand-from-trigger-key"><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&optional</i>·<code>field</code>)</a></li> |
258 | <li><a·href="#yas-skip-and-clear-or-delete-char"><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&optional</i>·<code>field</code>)</a></li> | 258 | <li><a·href="#yas-skip-and-clear-or-delete-char"><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&optional</i>·<code>field</code>)</a></li> |
259 | <li><a·href="#yas-global-mode"><code·class='function'>yas-global-mode</code>·(<i>&optional</i>·<code>arg</code>)</a></li> | 259 | <li><a·href="#yas-global-mode"><code·class='function'>yas-global-mode</code>·(<i>&optional</i>·<code>arg</code>)</a></li> |
260 | <li><a·href="#yas-recompile-all"><code·class='function'>yas-recompile-all</code>·()</a></li> | 260 | <li><a·href="#yas-recompile-all"><code·class='function'>yas-recompile-all</code>·()</a></li> |
261 | <li><a·href="#yas-visit-snippet-file"><code·class='function'>yas-visit-snippet-file</code>·()</a></li> | 261 | <li><a·href="#yas-visit-snippet-file"><code·class='function'>yas-visit-snippet-file</code>·()</a></li> |
Offset 281, 15 lines modified | Offset 281, 15 lines modified | ||
281 | <li><a·href="#yas-skip-and-clear-field"><code·class='function'>yas-skip-and-clear-field</code>·(<i>&optional</i>·<code>field</code>)</a></li> | 281 | <li><a·href="#yas-skip-and-clear-field"><code·class='function'>yas-skip-and-clear-field</code>·(<i>&optional</i>·<code>field</code>)</a></li> |
282 | <li><a·href="#yas-compile-directory"><code·class='function'>yas-compile-directory</code>·(<code>top-level-dir</code>)</a></li> | 282 | <li><a·href="#yas-compile-directory"><code·class='function'>yas-compile-directory</code>·(<code>top-level-dir</code>)</a></li> |
283 | <li><a·href="#yas-load-directory"><code·class='function'>yas-load-directory</code>·(<code>top-level-dir</code>·<i>&optional</i>·<code>use-jit</code>·<code>interactive</code>)</a></li> | 283 | <li><a·href="#yas-load-directory"><code·class='function'>yas-load-directory</code>·(<code>top-level-dir</code>·<i>&optional</i>·<code>use-jit</code>·<code>interactive</code>)</a></li> |
284 | <li><a·href="#yas-describe-table-by-namehash"><code·class='function'>yas-describe-table-by-namehash</code>·()</a></li> | 284 | <li><a·href="#yas-describe-table-by-namehash"><code·class='function'>yas-describe-table-by-namehash</code>·()</a></li> |
285 | <li><a·href="#yas-tryout-snippet"><code·class='function'>yas-tryout-snippet</code>·(<i>&optional</i>·<code>debug</code>)</a></li> | 285 | <li><a·href="#yas-tryout-snippet"><code·class='function'>yas-tryout-snippet</code>·(<i>&optional</i>·<code>debug</code>)</a></li> |
286 | </ul> | 286 | </ul> |
287 | </li> | 287 | </li> |
288 | <li><a·href="#org | 288 | <li><a·href="#orgd1c0716">Customization·variables</a> |
289 | <ul> | 289 | <ul> |
290 | <li><a·href="#yas-expand-only-for-last-commands"><code·class='variable'>yas-expand-only-for-last-commands</code></a></li> | 290 | <li><a·href="#yas-expand-only-for-last-commands"><code·class='variable'>yas-expand-only-for-last-commands</code></a></li> |
291 | <li><a·href="#yas-wrap-around-region"><code·class='variable'>yas-wrap-around-region</code></a></li> | 291 | <li><a·href="#yas-wrap-around-region"><code·class='variable'>yas-wrap-around-region</code></a></li> |
292 | <li><a·href="#yas-new-snippet-default"><code·class='variable'>yas-new-snippet-default</code></a></li> | 292 | <li><a·href="#yas-new-snippet-default"><code·class='variable'>yas-new-snippet-default</code></a></li> |
293 | <li><a·href="#yas-choose-keys-first"><code·class='variable'>yas-choose-keys-first</code></a></li> | 293 | <li><a·href="#yas-choose-keys-first"><code·class='variable'>yas-choose-keys-first</code></a></li> |
294 | <li><a·href="#yas-triggers-in-field"><code·class='variable'>yas-triggers-in-field</code></a></li> | 294 | <li><a·href="#yas-triggers-in-field"><code·class='variable'>yas-triggers-in-field</code></a></li> |
295 | <li><a·href="#yas-use-menu"><code·class='variable'>yas-use-menu</code></a></li> | 295 | <li><a·href="#yas-use-menu"><code·class='variable'>yas-use-menu</code></a></li> |
Offset 304, 15 lines modified | Offset 304, 15 lines modified | ||
304 | <li><a·href="#yas-trigger-symbol"><code·class='variable'>yas-trigger-symbol</code></a></li> | 304 | <li><a·href="#yas-trigger-symbol"><code·class='variable'>yas-trigger-symbol</code></a></li> |
305 | <li><a·href="#yas-also-indent-empty-lines"><code·class='variable'>yas-also-indent-empty-lines</code></a></li> | 305 | <li><a·href="#yas-also-indent-empty-lines"><code·class='variable'>yas-also-indent-empty-lines</code></a></li> |
306 | <li><a·href="#yas-also-auto-indent-first-line"><code·class='variable'>yas-also-auto-indent-first-line</code></a></li> | 306 | <li><a·href="#yas-also-auto-indent-first-line"><code·class='variable'>yas-also-auto-indent-first-line</code></a></li> |
307 | <li><a·href="#yas-indent-line"><code·class='variable'>yas-indent-line</code></a></li> | 307 | <li><a·href="#yas-indent-line"><code·class='variable'>yas-indent-line</code></a></li> |
308 | <li><a·href="#yas-alias-to-yas/prefix-p"><code·class='variable'>yas-alias-to-yas/prefix-p</code></a></li> | 308 | <li><a·href="#yas-alias-to-yas/prefix-p"><code·class='variable'>yas-alias-to-yas/prefix-p</code></a></li> |
309 | </ul> | 309 | </ul> |
310 | </li> | 310 | </li> |
311 | <li><a·href="#org | 311 | <li><a·href="#orgdd2570f">Useful·functions</a> |
312 | <ul> | 312 | <ul> |
313 | <li><a·href="#yas-expand-snippet"><code·class='function'>yas-expand-snippet</code>·(<code>snippet</code>·<i>&optional</i>·<code>start</code>·<code>end</code>·<code>expand-env</code>)</a></li> | 313 | <li><a·href="#yas-expand-snippet"><code·class='function'>yas-expand-snippet</code>·(<code>snippet</code>·<i>&optional</i>·<code>start</code>·<code>end</code>·<code>expand-env</code>)</a></li> |
314 | <li><a·href="#yas-define-snippets"><code·class='function'>yas-define-snippets</code>·(<code>mode</code>·<code>snippets</code>)</a></li> | 314 | <li><a·href="#yas-define-snippets"><code·class='function'>yas-define-snippets</code>·(<code>mode</code>·<code>snippets</code>)</a></li> |
315 | <li><a·href="#yas-completing-prompt"><code·class='function'>yas-completing-prompt</code>·(<code>prompt</code>·<code>choices</code>·<i>&optional</i>·<code>display-fn</code>·<code>completion-fn</code>)</a></li> | 315 | <li><a·href="#yas-completing-prompt"><code·class='function'>yas-completing-prompt</code>·(<code>prompt</code>·<code>choices</code>·<i>&optional</i>·<code>display-fn</code>·<code>completion-fn</code>)</a></li> |
316 | <li><a·href="#yas-inside-string"><code·class='function'>yas-inside-string</code>·()</a></li> | 316 | <li><a·href="#yas-inside-string"><code·class='function'>yas-inside-string</code>·()</a></li> |
317 | <li><a·href="#yas-lookup-snippet"><code·class='function'>yas-lookup-snippet</code>·(<code>name</code>·<i>&optional</i>·<code>mode</code>·<code>noerror</code>)</a></li> | 317 | <li><a·href="#yas-lookup-snippet"><code·class='function'>yas-lookup-snippet</code>·(<code>name</code>·<i>&optional</i>·<code>mode</code>·<code>noerror</code>)</a></li> |
318 | <li><a·href="#yas-x-prompt"><code·class='function'>yas-x-prompt</code>·(<code>prompt</code>·<code>choices</code>·<i>&optional</i>·<code>display-fn</code>)</a></li> | 318 | <li><a·href="#yas-x-prompt"><code·class='function'>yas-x-prompt</code>·(<code>prompt</code>·<code>choices</code>·<i>&optional</i>·<code>display-fn</code>)</a></li> |
Offset 345, 15 lines modified | Offset 345, 15 lines modified | ||
345 | <li><a·href="#yas-default-from-field"><code·class='function'>yas-default-from-field</code>·(<code>number</code>)</a></li> | 345 | <li><a·href="#yas-default-from-field"><code·class='function'>yas-default-from-field</code>·(<code>number</code>)</a></li> |
346 | <li><a·href="#yas-key-to-value"><code·class='function'>yas-key-to-value</code>·(<code>alist</code>)</a></li> | 346 | <li><a·href="#yas-key-to-value"><code·class='function'>yas-key-to-value</code>·(<code>alist</code>)</a></li> |
347 | <li><a·href="#yas-throw"><code·class='function'>yas-throw</code>·(<code>text</code>)</a></li> | 347 | <li><a·href="#yas-throw"><code·class='function'>yas-throw</code>·(<code>text</code>)</a></li> |
348 | <li><a·href="#yas-hippie-try-expand"><code·class='function'>yas-hippie-try-expand</code>·(<code>first-time?</code>)</a></li> | 348 | <li><a·href="#yas-hippie-try-expand"><code·class='function'>yas-hippie-try-expand</code>·(<code>first-time?</code>)</a></li> |
349 | <li><a·href="#yas-maybe-load-snippet-buffer"><code·class='function'>yas-maybe-load-snippet-buffer</code>·()</a></li> | 349 | <li><a·href="#yas-maybe-load-snippet-buffer"><code·class='function'>yas-maybe-load-snippet-buffer</code>·()</a></li> |
350 | </ul> | 350 | </ul> |
351 | </li> | 351 | </li> |
352 | <li><a·href="#org | 352 | <li><a·href="#orga2da138">Useful·variables</a> |
353 | <ul> | 353 | <ul> |
354 | <li><a·href="#yas-key-syntaxes"><code·class='variable'>yas-key-syntaxes</code></a></li> | 354 | <li><a·href="#yas-key-syntaxes"><code·class='variable'>yas-key-syntaxes</code></a></li> |
355 | <li><a·href="#yas-modified-p"><code·class='variable'>yas-modified-p</code></a></li> | 355 | <li><a·href="#yas-modified-p"><code·class='variable'>yas-modified-p</code></a></li> |
356 | <li><a·href="#yas-dont-activate-functions"><code·class='variable'>yas-dont-activate-functions</code></a></li> | 356 | <li><a·href="#yas-dont-activate-functions"><code·class='variable'>yas-dont-activate-functions</code></a></li> |
357 | <li><a·href="#yas-before-expand-snippet-hook"><code·class='variable'>yas-before-expand-snippet-hook</code></a></li> | 357 | <li><a·href="#yas-before-expand-snippet-hook"><code·class='variable'>yas-before-expand-snippet-hook</code></a></li> |
358 | <li><a·href="#yas-maybe-skip-and-clear-field"><code·class='variable'>yas-maybe-skip-and-clear-field</code></a></li> | 358 | <li><a·href="#yas-maybe-skip-and-clear-field"><code·class='variable'>yas-maybe-skip-and-clear-field</code></a></li> |
359 | <li><a·href="#yas-keymap"><code·class='variable'>yas-keymap</code></a></li> | 359 | <li><a·href="#yas-keymap"><code·class='variable'>yas-keymap</code></a></li> |
Offset 374, 20 lines modified | Offset 374, 20 lines modified | ||
374 | <li><a·href="#yas-global-mode-buffers"><code·class='variable'>yas-global-mode-buffers</code></a></li> | 374 | <li><a·href="#yas-global-mode-buffers"><code·class='variable'>yas-global-mode-buffers</code></a></li> |
375 | </ul> | 375 | </ul> |
376 | </li> | 376 | </li> |
377 | </ul> | 377 | </ul> |
378 | </div> | 378 | </div> |
379 | </div> | 379 | </div> |
380 | <div·id="outline-container-org | 380 | <div·id="outline-container-org1f1fbed"·class="outline-2"> |
381 | <h2·id="org | 381 | <h2·id="org1f1fbed">Interactive·functions</h2> |
382 | <div·class="outline-text-2"·id="text-org | 382 | <div·class="outline-text-2"·id="text-org1f1fbed"> |
383 | </div> | 383 | </div> |
384 | <div·id="outline-container-org | 384 | <div·id="outline-container-org74f9a7d"·class="outline-3"> |
385 | <h3·id="yas-load-snippet-buffer-and-close"><a·id="org | 385 | <h3·id="yas-load-snippet-buffer-and-close"><a·id="org74f9a7d"></a><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&optional</i>·<code>kill</code>)</h3> |
386 | <div·class="outline-text-3"·id="text-yas-load-snippet-buffer-and-close"> | 386 | <div·class="outline-text-3"·id="text-yas-load-snippet-buffer-and-close"> |
387 | <p> | 387 | <p> |
388 | Load·and·save·the·snippet,·then·<code>quit-window</code>·if·saved. | 388 | Load·and·save·the·snippet,·then·<code>quit-window</code>·if·saved. |
389 | Loading·is·performed·by·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>.··If·the | 389 | Loading·is·performed·by·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>.··If·the |
390 | snippet·is·new,·ask·the·user·whether·(and·where)·to·save·it.··If | 390 | snippet·is·new,·ask·the·user·whether·(and·where)·to·save·it.··If |
391 | the·snippet·already·has·a·file,·just·save·it. | 391 | the·snippet·already·has·a·file,·just·save·it. |
392 | </p> | 392 | </p> |
Offset 399, 16 lines modified | Offset 399, 16 lines modified | ||
399 | <p> | 399 | <p> |
400 | Don't·use·this·from·a·Lisp·program,·call·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a> | 400 | Don't·use·this·from·a·Lisp·program,·call·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a> |
401 | and·<code>kill-buffer</code>·instead. | 401 | and·<code>kill-buffer</code>·instead. |
402 | </p> | 402 | </p> |
403 | </div> | 403 | </div> |
404 | </div> | 404 | </div> |
405 | <div·id="outline-container-org | 405 | <div·id="outline-container-org668cb13"·class="outline-3"> |
406 | <h3·id="yas-expand-from-trigger-key"><a·id="org | 406 | <h3·id="yas-expand-from-trigger-key"><a·id="org668cb13"></a><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&optional</i>·<code>field</code>)</h3> |
407 | <div·class="outline-text-3"·id="text-yas-expand-from-trigger-key"> | 407 | <div·class="outline-text-3"·id="text-yas-expand-from-trigger-key"> |
408 | <p> | 408 | <p> |
409 | Expand·a·snippet·before·point. | 409 | Expand·a·snippet·before·point. |
410 | </p> | 410 | </p> |
411 | <p> | 411 | <p> |
412 | If·no·snippet·expansion·is·possible,·fall·back·to·the·behaviour | 412 | If·no·snippet·expansion·is·possible,·fall·back·to·the·behaviour |
Offset 418, 29 lines modified | Offset 418, 29 lines modified | ||
418 | <p> | 418 | <p> |
419 | Optional·argument·<code>field</code>·is·for·non-interactive·use·and·is·an | 419 | Optional·argument·<code>field</code>·is·for·non-interactive·use·and·is·an |
420 | object·satisfying·<code>yas--field-p</code>·to·restrict·the·expansion·to. | 420 | object·satisfying·<code>yas--field-p</code>·to·restrict·the·expansion·to. |
421 | </p> | 421 | </p> |
422 | </div> | 422 | </div> |
423 | </div> | 423 | </div> |
424 | <div·id="outline-container-org | 424 | <div·id="outline-container-org5a117aa"·class="outline-3"> |
425 | <h3·id="yas-skip-and-clear-or-delete-char"><a·id="org | 425 | <h3·id="yas-skip-and-clear-or-delete-char"><a·id="org5a117aa"></a><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&optional</i>·<code>field</code>)</h3> |
426 | <div·class="outline-text-3"·id="text-yas-skip-and-clear-or-delete-char"> | 426 | <div·class="outline-text-3"·id="text-yas-skip-and-clear-or-delete-char"> |
427 | <p> | 427 | <p> |
428 | Clears·unmodified·field·if·at·field·start,·skips·to·next·tab. | 428 | Clears·unmodified·field·if·at·field·start,·skips·to·next·tab. |
429 | </p> | 429 | </p> |
430 | <p> | 430 | <p> |
431 | Otherwise·deletes·a·character·normally·by·calling·<code>delete-char</code>. | 431 | Otherwise·deletes·a·character·normally·by·calling·<code>delete-char</code>. |
432 | </p> | 432 | </p> |
433 | </div> | 433 | </div> |
434 | </div> | 434 | </div> |
435 | <div·id="outline-container-org | 435 | <div·id="outline-container-org7133bd1"·class="outline-3"> |
436 | <h3·id="yas-global-mode"><a·id="org | 436 | <h3·id="yas-global-mode"><a·id="org7133bd1"></a><code·class='function'>yas-global-mode</code>·(<i>&optional</i>·<code>arg</code>)</h3> |
437 | <div·class="outline-text-3"·id="text-yas-global-mode"> | 437 | <div·class="outline-text-3"·id="text-yas-global-mode"> |
438 | <p> | 438 | <p> |
439 | Toggle·Yas·minor·mode·in·all·buffers. | 439 | Toggle·Yas·minor·mode·in·all·buffers. |
Max diff block lines reached; 65432/74706 bytes (87.59%) of diff not shown. |