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.
7 responses so far ↓
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.
The patch is incorporated in the 0.3.0 release. minor-mode really works better than my original solution.
@pluskid,
Thanks. I will go get it.
Are there snippets for Ruby/Rails yet?
@Helder
I have some that you can use: http://rejeep.tuxicity.se/rails-snippets.tar.gz
@rejeep – I will try those out… thx
That link is broken, can you please fix it ? Or send me an email with that file ? ATmixandgo.com
Leave a Comment