1 00:00:00,400 --> 00:00:03,067 welcome back to emacs rocks 2 00:00:03,067 --> 00:00:04,807 it's episode six 3 00:00:04,807 --> 00:00:07,221 and today we're gonna look at yasnippets 4 00:00:07,221 --> 00:00:11,167 it's pretty much a port from TextMate, except ... 5 00:00:11,167 --> 00:00:14,767 *even more rocking!* 6 00:00:14,767 --> 00:00:19,567 like TextMate snippets you can expand a mnemonic shortcut 7 00:00:19,567 --> 00:00:22,362 you also get placeholders 8 00:00:27,562 --> 00:00:30,567 and like TextMate you can mirror fields 9 00:00:30,567 --> 00:00:33,367 and even transform them 10 00:00:33,367 --> 00:00:35,033 check this out 11 00:00:35,033 --> 00:00:37,100 it strips off the directory 12 00:00:37,100 --> 00:00:41,148 and even camelCases the var for me 13 00:00:45,533 --> 00:00:48,067 so, TextMate can do all this 14 00:00:48,067 --> 00:00:49,900 it even looks a lot like TextMate, 15 00:00:49,900 --> 00:00:52,879 you've got placeholders and stops 16 00:00:52,879 --> 00:00:55,867 but check out this mirror field 17 00:00:55,867 --> 00:01:00,100 I've embedded lisp directly into the snippet 18 00:01:00,100 --> 00:01:02,667 it strips off the directory 19 00:01:02,667 --> 00:01:04,900 it camel cases 20 00:01:04,900 --> 00:01:08,940 here, TextMate uses *regular expressions* 21 00:01:08,940 --> 00:01:11,867 with yasnippets, you get the power 22 00:01:11,867 --> 00:01:17,333 and the functional fingerlickingly good lispness with your snippets 23 00:01:17,333 --> 00:01:19,552 nice! 24 00:01:20,167 --> 00:01:24,290 so let's see that again 25 00:01:25,690 --> 00:01:29,721 hah, sweet 26 00:01:29,721 --> 00:01:31,821 that was episode six 27 00:01:31,821 --> 00:01:34,788 you can check out my snippets on the github repo 28 00:01:34,788 --> 00:01:36,921 there's a link on my site 29 00:01:36,921 --> 99:59:59,999 and for more @emacsrocks, follow me on twitter