|
|
This is a re-design and re-writing of my original extension smart-snippet. The goal is ease of use and full features.
Getting Started
This is only a brief introduction. If you are finding detailed document, please refer the wiki pages on the right sidebar.
For the busy or impatient people
Watch the screencast at YouTube. Or download the higher resolution one.
For lazy people or beginner
- Download yasnippet-bundle-x.y.z.el.tgz on the right sidebar and unpack it.
- Save it to
- One of the directories in your load-path.
- Some arbitrary directory, e.g ~/.emacs.d/plugins and add this directory to your load-path, that is, add this to your ~/.emacs file.
- Require it in your ~/.emacs file:
(add-to-list 'load-path
"~/.emacs.d/plugins")(require 'yasnippet-bundle)
For You
- Download the latest yasnippet-x.y.z.tar.bz2 on the right sidebar.
- Unpack it.
- Add that directory to your load-path.
- Require and initialize yasnippet in your ~/.emacs file:
- Optionally you can customize the snippets inside the snippets directory.
(require 'yasnippet) ;; not yasnippet-bundle (yas/initialize) (yas/load-directory "/path/to/the/snippets/directory/")
For geeks
If you want to always follow the latest code. You can check out it from the svn repository:
svn checkout http://yasnippet.googlecode.com/svn/trunk/ yasnippet
How to contribute ?
Issues
If you find a bug or have any suggestions, you can create a new issue at the issue list. Please describe the problem as clear as possible.
Snippets
yasnippet comes with some default snippet definitions. But those are rather too few. If you have some good snippet definition that might be useful to many poeple, you can post them to the discussion group (as mail body or attachment). You can specify the `contributor' property for the snippet like:
#contributor : pluskid <pluskid@gmail.com>
#name : __...__
# --
__${init}__I'll verify those snippets when I have time and incorporate them into the distribution if suitable.
