WEBVTT 00:00:00.400 --> 00:00:03.067 welcome back to emacs rocks 00:00:03.067 --> 00:00:04.807 it's episode six 00:00:04.807 --> 00:00:07.221 and today we're gonna look at yasnippets 00:00:07.221 --> 00:00:11.167 it's pretty much a port from TextMate, except ... 00:00:11.167 --> 00:00:14.767 *even more rocking!* 00:00:14.767 --> 00:00:19.567 like TextMate snippets you can expand a mnemonic shortcut 00:00:19.567 --> 00:00:22.362 you also get placeholders 00:00:27.562 --> 00:00:30.567 and like TextMate you can mirror fields 00:00:30.567 --> 00:00:33.367 and even transform them 00:00:33.367 --> 00:00:35.033 check this out 00:00:35.033 --> 00:00:37.100 it strips off the directory 00:00:37.100 --> 00:00:41.148 and even camelCases the var for me 00:00:45.533 --> 00:00:48.067 so, TextMate can do all this 00:00:48.067 --> 00:00:49.900 it even looks a lot like TextMate, 00:00:49.900 --> 00:00:52.879 you've got placeholders and stops 00:00:52.879 --> 00:00:55.867 but check out this mirror field 00:00:55.867 --> 00:01:00.100 I've embedded lisp directly into the snippet 00:01:00.100 --> 00:01:02.667 it strips off the directory 00:01:02.667 --> 00:01:04.900 it camel cases 00:01:04.900 --> 00:01:08.940 here, TextMate uses *regular expressions* 00:01:08.940 --> 00:01:11.867 with yasnippets, you get the power 00:01:11.867 --> 00:01:17.333 and the functional fingerlickingly good lispness with your snippets 00:01:17.333 --> 00:01:19.552 nice! 00:01:20.167 --> 00:01:24.290 so let's see that again 00:01:25.690 --> 00:01:29.721 hah, sweet 00:01:29.721 --> 00:01:31.821 that was episode six 00:01:31.821 --> 00:01:34.788 you can check out my snippets on the github repo 00:01:34.788 --> 00:01:36.921 there's a link on my site 00:01:36.921 --> 99:59:59.999 and for more @emacsrocks, follow me on twitter