WEBVTT 00:00:00.277 --> 00:00:03.867 Welcome back to emacs rocks 00:00:03.867 --> 00:00:07.598 last episode I did this cool stunt 00:00:08.767 --> 00:00:12.067 but that doesn't work very well for real asserts 00:00:12.067 --> 00:00:15.533 transpose-words just doesn't cut it 00:00:15.533 --> 00:00:18.333 so it's time to bring out the *big guns* 00:00:18.333 --> 00:00:21.967 macros 00:00:21.967 --> 00:00:25.767 define macro, search for assertEquals 00:00:25.767 --> 00:00:28.167 and when you do your macros, you have to show some care 00:00:28.167 --> 00:00:30.302 and use some cool tricks 00:00:30.302 --> 00:00:32.733 for instance, I can now jump to the opposing paren 00:00:32.733 --> 00:00:35.387 using ctrl-meta-n 00:00:35.387 --> 00:00:37.700 back again with ctrl-meta-p 00:00:37.700 --> 00:00:43.921 okay, I go back and do a reverse search for comma 00:00:49.567 --> 00:00:54.979 and a reverse search for equals 00:00:59.979 --> 00:01:01.554 done 00:01:01.835 --> 00:01:03.967 so since I did that in reverse, 00:01:03.967 --> 00:01:06.297 it not only works for that long string, 00:01:06.297 --> 00:01:09.233 but it also works for the array 00:01:09.233 --> 00:01:12.500 and that's why I did the comma in reverse 00:01:12.500 --> 00:01:16.100 it also works for my object 00:01:16.100 --> 00:01:18.329 and my multiline object 00:01:18.329 --> 00:01:19.929 nice! 00:01:19.929 --> 00:01:22.763 so if you have some tricks in your back pocket, 00:01:22.763 --> 00:01:26.982 you can make some really powerful macros 00:01:28.567 --> 00:01:30.396 that was episode five 00:01:30.396 --> 99:59:59.999 follow me on twitter