M-x all-things-emacs

Yet Another Snippet Package

March 13th, 2008 by Rob Christie · 110 Comments

There are a number of snippet packages that are available for emacs: snippet.el, smart-snippet, and the older skeleton and tempo packages that are a part of emacs. The snippet package was in the words of the developer:

A quick stab at providing a simple template facility like the one present in TextMate (an OSX editor).

The creator of smart-snippet, an extension to snippet.el, has now created the aptly titled yasnippet – Yet Another Snippet extension for emacs. It looks promising based on the screencast… I have not had a chance to play with it yet locally. The mirrored fields support looks cool though.

Tags: misc · snippet

110 responses so far ↓

  • 1 Rob Christie // Mar 14, 2008 at 8:36 pm

    I have now had a chance to play with the package a bit more. I need to try a patch described on the mailing list that turns it into a minor-mode, but my initial impression is very good. I really like it.

  • 2 pluskid // Mar 16, 2008 at 5:09 pm

    The patch is incorporated in the 0.3.0 release. minor-mode really works better than my original solution. 🙂

  • 3 Rob Christie // Mar 17, 2008 at 3:26 am


    Thanks. I will go get it.

  • 4 Helder // Apr 6, 2008 at 11:30 pm

    Are there snippets for Ruby/Rails yet?

  • 5 rejeep // Apr 16, 2008 at 7:44 am


    I have some that you can use: http://rejeep.tuxicity.se/rails-snippets.tar.gz

  • 6 Rob Christie // Apr 16, 2008 at 1:01 pm

    @rejeep – I will try those out… thx

  • 7 Cezar // Apr 29, 2008 at 11:16 pm

    That link is broken, can you please fix it ? Or send me an email with that file ? ATmixandgo.com