资 源 简 介
Please migrate to YASnippet
Please migrate to YASnippet. YASnippet is a totally rewritten from scratch after I evaluated the feedbacks from smart-snippet. It support more features and works better. Also it is more convenient to configure. The homepage is at here: http://code.google.com/p/yasnippet/ .
Pete Kazmier"s snippet.el is a Textmate-like template extension for Emacs. smart-snippet.el enhances snippet.el so that you can now have more control over the expansion of perticular abbrev. You can have the same abbrev expanding into different snippet under different circumstance.
For example, if you know ruby(or perl, similarly), its if has two use
if condition statementend
and
statement if condition
now you can see if will expand into the first version if it occurs at the beginning of a line(ignoring spaces), the second version if not. Oh, wait, you may also wish not to expand