[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 07734a1 165/177: Clarify what happens with yas-new-snippet
From: |
João Távora |
Subject: |
[elpa] master 07734a1 165/177: Clarify what happens with yas-new-snippet. |
Date: |
Sat, 28 Mar 2015 15:41:40 +0000 |
branch: master
commit 07734a17131fc604526307df6e323cbdfdf69624
Author: Win Treese <address@hidden>
Commit: Win Treese <address@hidden>
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.
---
doc/snippet-development.org | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/doc/snippet-development.org b/doc/snippet-development.org
index c4de864..9e8f901 100644
--- a/doc/snippet-development.org
+++ b/doc/snippet-development.org
@@ -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=
- [elpa] master 596e6b2 158/177: Closes #537: Be lenient to extensions operating on snippet fields, (continued)
- [elpa] master 596e6b2 158/177: Closes #537: Be lenient to extensions operating on snippet fields, João Távora, 2015/03/28
- [elpa] master 1c97671 157/177: Closes #536: Fix navigation to zero-length fields at snippet end, João Távora, 2015/03/28
- [elpa] master e2b876b 154/177: Tweak README.mdown to simplify bug reporting paragraph, João Távora, 2015/03/28
- [elpa] master 51d4ed1 156/177: Update snippets submodule, João Távora, 2015/03/28
- [elpa] master 175e0a3 159/177: Clean up previous change, João Távora, 2015/03/28
- [elpa] master 50ca8d3 160/177: Update README.mdown, João Távora, 2015/03/28
- [elpa] master bb6bbad 161/177: Add file doc/.nosearch, João Távora, 2015/03/28
- [elpa] master 9709dbd 164/177: Add autoload cookies, João Távora, 2015/03/28
- [elpa] master b62bdf3 163/177: Closes #546: backport `yas-initialize' and provide `yas/initialize', João Távora, 2015/03/28
- [elpa] master e161fc0 162/177: Merge pull request #542 from tarsius/nosearch, João Távora, 2015/03/28
- [elpa] master 07734a1 165/177: Clarify what happens with yas-new-snippet.,
João Távora <=
- [elpa] master 3c13348 167/177: yas-expand-snippet: Clarify EXPAND-ENV, João Távora, 2015/03/28
- [elpa] master 21ffe4b 168/177: Merge pull request #559 from mineo/patch-1, João Távora, 2015/03/28
- [elpa] master 197ef7f 166/177: Merge pull request #552 from treese/master, João Távora, 2015/03/28
- [elpa] master 3e7b56e 169/177: Implements #566: Remove dead major modes code, João Távora, 2015/03/28
- [elpa] master b9989f8 170/177: Add a CONTRIBUTING.md file, João Távora, 2015/03/28
- [elpa] master 316435e 173/177: Closes #562: Deleting inner numberless snippet causes error, João Távora, 2015/03/28
- [elpa] master fc5052b 171/177: Merge pull request #568 from npostavs/contrib, João Távora, 2015/03/28
- [elpa] master 885237a 174/177: Add useful development assertion, João Távora, 2015/03/28
- [elpa] master a467019 175/177: `yas-minor-mode' assertion broke a test. Good. Fix it., João Távora, 2015/03/28
- [elpa] master d19ef74 172/177: Getting rid of low-level assumptions in yasnippet, João Távora, 2015/03/28