Welcome back to emacs rocks
last episode I did this cool stunt
but that doesn't work very well for real asserts
transpose-words just doesn't cut it
so it's time to bring out the *big guns*
macros
define macro, search for assertEquals
and when you do your macros, you have to show some care
and use some cool tricks
for instance, I can now jump to the opposing paren
using ctrl-meta-n
back again with ctrl-meta-p
okay, I go back and do a reverse search for comma
and a reverse search for equals
done
so since I did that in reverse,
it not only works for that long string,
but it also works for the array
and that's why I did the comma in reverse
it also works for my object
and my multiline object
nice!
so if you have some tricks in your back pocket,
you can make some really powerful macros
that was episode five
follow me on twitter