* doc/faq.org: Typos and grammar.

Copyright-paperwork-exempt: yes
This commit is contained in:
Barak A. Pearlmutter 2015-10-12 19:29:44 +01:00 committed by Noam Postavsky
parent e878afb883
commit 7b3c29d210

View File

@ -4,14 +4,14 @@
* Why is there an extra newline? * Why is there an extra newline?
If you have a newline at the end of the snippet definition file, then If there is a newline at the end of a snippet definition file,
YASnippet will add a newline when you expanding a snippet. Please don't YASnippet will add a newline when expanding that snippet. When editing
add a newline at the end if you don't want it when you saving the or saving a snippet file, please be careful not to accidentally add a
snippet file. terminal newline.
Note some editors will automatically add a newline for you. In Emacs, if Note that some editors will automatically add a newline for you. In
you set =require-final-newline= to =t=, it will add the final newline Emacs, if you set =require-final-newline= to =t=, it will add the
for you automatically. final newline automatically.
* Why doesn't TAB expand a snippet? * Why doesn't TAB expand a snippet?
@ -27,8 +27,8 @@ code to your =.emacs= /before/ loading YASnippet:
where =the-major-mode= is the major mode in which [[sym:yas-minor-mode][=yas-minor-mode=]] isn't where =the-major-mode= is the major mode in which [[sym:yas-minor-mode][=yas-minor-mode=]] isn't
enabled by default. enabled by default.
From YASnippet 0.6 you can also use the command =M-x yas-global-mode= to The command =M-x yas-global-mode= turns YASnippet on automatically for
turn on YASnippet automatically for /all/ major modes. /all/ major modes.
If [[sym:yas-minor-mode][=yas-minor-mode=]] is on but the snippet still not expanded. Then try If [[sym:yas-minor-mode][=yas-minor-mode=]] is on but the snippet still not expanded. Then try
to see what command is bound to the =TAB= key: press =C-h k= and then to see what command is bound to the =TAB= key: press =C-h k= and then