1 00:00:00,277 --> 00:00:03,867 Welcome back to emacs rocks 2 00:00:03,867 --> 00:00:07,598 last episode I did this cool stunt 3 00:00:08,767 --> 00:00:12,067 but that doesn't work very well for real asserts 4 00:00:12,067 --> 00:00:15,533 transpose-words just doesn't cut it 5 00:00:15,533 --> 00:00:18,333 so it's time to bring out the *big guns* 6 00:00:18,333 --> 00:00:21,967 macros 7 00:00:21,967 --> 00:00:25,767 define macro, search for assertEquals 8 00:00:25,767 --> 00:00:28,167 and when you do your macros, you have to show some care 9 00:00:28,167 --> 00:00:30,302 and use some cool tricks 10 00:00:30,302 --> 00:00:32,733 for instance, I can now jump to the opposing paren 11 00:00:32,733 --> 00:00:35,387 using ctrl-meta-n 12 00:00:35,387 --> 00:00:37,700 back again with ctrl-meta-p 13 00:00:37,700 --> 00:00:43,921 okay, I go back and do a reverse search for comma 14 00:00:49,567 --> 00:00:54,979 and a reverse search for equals 15 00:00:59,979 --> 00:01:01,554 done 16 00:01:01,835 --> 00:01:03,967 so since I did that in reverse, 17 00:01:03,967 --> 00:01:06,297 it not only works for that long string, 18 00:01:06,297 --> 00:01:09,233 but it also works for the array 19 00:01:09,233 --> 00:01:12,500 and that's why I did the comma in reverse 20 00:01:12,500 --> 00:01:16,100 it also works for my object 21 00:01:16,100 --> 00:01:18,329 and my multiline object 22 00:01:18,329 --> 00:01:19,929 nice! 23 00:01:19,929 --> 00:01:22,763 so if you have some tricks in your back pocket, 24 00:01:22,763 --> 00:01:26,982 you can make some really powerful macros 25 00:01:28,567 --> 00:01:30,396 that was episode five 26 00:01:30,396 --> 99:59:59,999 follow me on twitter