]> code.delx.au - gnu-emacs-elpa/blob - doc/faq.rst
add contents to faq.
[gnu-emacs-elpa] / doc / faq.rst
1 =========================
2 How to define a snippet ?
3 =========================
4
5 :Author: pluskid
6 :Contact: pluskid@gmail.com
7 :Date: 2008-03-20
8
9 Why there's an extra newline?
10 =============================
11
12 If you have a newline at the end of the snippet definition file, then
13 YASnippet will add a newline when you expanding a snippet. Please
14 don't add a newline at the end if you don't want it when you saving
15 the snippet file.
16
17 Note some editors will automatically add a newline for you. In Emacs,
18 if you set ``require-final-newline`` to ``t``, it will add the final
19 newline for you automatically.