mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Clarify what happens with yas-new-snippet.
Added more detail about how yas-new-snippet behaves, particularly how it guesses a directory to save in.
This commit is contained in:
parent
b62bdf3fcd
commit
07734a1713
@ -6,14 +6,18 @@
|
|||||||
|
|
||||||
** Quickly finding snippets
|
** Quickly finding snippets
|
||||||
|
|
||||||
There are some ways you can quickly find a snippet file:
|
There are some ways you can quickly find a snippet file or create a new one:
|
||||||
|
|
||||||
- =M-x yas-new-snippet=
|
- =M-x yas-new-snippet=
|
||||||
|
|
||||||
Prompts you for a snippet name, then tries to guess a suitable
|
Creates a new buffer with a template for making a new snippet.
|
||||||
directory to store it, prompting you for creation if it does not
|
The buffer is in =snippet-mode= (see below). When you are done
|
||||||
exist. Finally, places you in a new buffer set to =snippet-mode= so
|
editing the new snippet, use =C-c C-c= to save it. This will
|
||||||
you can write your snippet.
|
prompt for a directory two steps: first, the snippet table
|
||||||
|
(with a default based on the major mode you started in), and then
|
||||||
|
then snippet collection directory (defaults to the first directory
|
||||||
|
in =yas-snippet-dirs=. (See [[file:snippet-organization.org][Organizing Snippets]]
|
||||||
|
for more detail on how snippets are organized.)
|
||||||
|
|
||||||
- =M-x yas-find-snippets=
|
- =M-x yas-find-snippets=
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user