[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.40,0:00:03.07,Default,,0000,0000,0000,,welcome back to emacs rocks Dialogue: 0,0:00:03.07,0:00:04.81,Default,,0000,0000,0000,,it's episode six Dialogue: 0,0:00:04.81,0:00:07.22,Default,,0000,0000,0000,,and today we're gonna look at yasnippets Dialogue: 0,0:00:07.22,0:00:11.17,Default,,0000,0000,0000,,it's pretty much a port from TextMate, except ... Dialogue: 0,0:00:11.17,0:00:14.77,Default,,0000,0000,0000,,*even more rocking!* Dialogue: 0,0:00:14.77,0:00:19.57,Default,,0000,0000,0000,,like TextMate snippets you can expand a mnemonic shortcut Dialogue: 0,0:00:19.57,0:00:22.36,Default,,0000,0000,0000,,you also get placeholders Dialogue: 0,0:00:27.56,0:00:30.57,Default,,0000,0000,0000,,and like TextMate you can mirror fields Dialogue: 0,0:00:30.57,0:00:33.37,Default,,0000,0000,0000,,and even transform them Dialogue: 0,0:00:33.37,0:00:35.03,Default,,0000,0000,0000,,check this out Dialogue: 0,0:00:35.03,0:00:37.10,Default,,0000,0000,0000,,it strips off the directory Dialogue: 0,0:00:37.10,0:00:41.15,Default,,0000,0000,0000,,and even camelCases the var for me Dialogue: 0,0:00:45.53,0:00:48.07,Default,,0000,0000,0000,,so, TextMate can do all this Dialogue: 0,0:00:48.07,0:00:49.90,Default,,0000,0000,0000,,it even looks a lot like TextMate, Dialogue: 0,0:00:49.90,0:00:52.88,Default,,0000,0000,0000,,you've got placeholders and stops Dialogue: 0,0:00:52.88,0:00:55.87,Default,,0000,0000,0000,,but check out this mirror field Dialogue: 0,0:00:55.87,0:01:00.10,Default,,0000,0000,0000,,I've embedded lisp directly into the snippet Dialogue: 0,0:01:00.10,0:01:02.67,Default,,0000,0000,0000,,it strips off the directory Dialogue: 0,0:01:02.67,0:01:04.90,Default,,0000,0000,0000,,it camel cases Dialogue: 0,0:01:04.90,0:01:08.94,Default,,0000,0000,0000,,here, TextMate uses *regular expressions* Dialogue: 0,0:01:08.94,0:01:11.87,Default,,0000,0000,0000,,with yasnippets, you get the power Dialogue: 0,0:01:11.87,0:01:17.33,Default,,0000,0000,0000,,and the functional fingerlickingly good lispness with your snippets Dialogue: 0,0:01:17.33,0:01:19.55,Default,,0000,0000,0000,,nice! Dialogue: 0,0:01:20.17,0:01:24.29,Default,,0000,0000,0000,,so let's see that again Dialogue: 0,0:01:25.69,0:01:29.72,Default,,0000,0000,0000,,hah, sweet Dialogue: 0,0:01:29.72,0:01:31.82,Default,,0000,0000,0000,,that was episode six Dialogue: 0,0:01:31.82,0:01:34.79,Default,,0000,0000,0000,,you can check out my snippets on the github repo Dialogue: 0,0:01:34.79,0:01:36.92,Default,,0000,0000,0000,,there's a link on my site Dialogue: 0,0:01:36.92,9:59:59.99,Default,,0000,0000,0000,,and for more @emacsrocks, follow me on twitter