]> code.delx.au - gnu-emacs-elpa/commitdiff
Clarify what happens with yas-new-snippet.
authorWin Treese <treese@acm.org>
Sat, 10 Jan 2015 15:04:18 +0000 (10:04 -0500)
committerWin Treese <treese@acm.org>
Sat, 10 Jan 2015 15:04:18 +0000 (10:04 -0500)
Added more detail about how yas-new-snippet behaves, particularly how it guesses a directory to save in.

doc/snippet-development.org

index c4de86440fdfea2acf32ba53f946cf170e334789..9e8f9010ae0b08832be3047ab4be5f1cb974f3f0 100644 (file)
@@ -6,14 +6,18 @@
 
 ** 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=
 
-   Prompts you for a snippet name, then tries to guess a suitable
-   directory to store it, prompting you for creation if it does not
-   exist. Finally, places you in a new buffer set to =snippet-mode= so
-   you can write your snippet.
+   Creates a new buffer with a template for making a new snippet.
+   The buffer is in =snippet-mode= (see below). When you are done
+   editing the new snippet, use =C-c C-c= to save it. This will
+   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=