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