What's new? | Help | Directory | Sign in
Google
yasnippet
yet another snippet extension for Emacs.
  
  
  
  
    
License: MIT License
Labels: emacs, snippet, extension
Join project
Project owners:
  pluskid

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

  1. Download yasnippet-bundle-x.y.z.el.tgz on the right sidebar and unpack it.
  2. Save it to
  3. Require it in your ~/.emacs file:
  4. (require 'yasnippet-bundle)

For You

  1. Download the latest yasnippet-x.y.z.tar.bz2 on the right sidebar.
  2. Unpack it.
  3. Add that directory to your load-path.
  4. Require and initialize yasnippet in your ~/.emacs file:
  5. (require 'yasnippet) ;; not yasnippet-bundle
    (yas/initialize)
    (yas/load-directory "/path/to/the/snippets/directory/")
  6. Optionally you can customize the snippets inside 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.