-
Hi Welcome to Emacs Rocks!
-
I just started using Emacs. I've been using TextMate for a few years and
-
I've been looking for something else. I tried vim, it's nice.
-
But I've been using Emacs for a few weeks now and
-
I'm really loving it, it's awesome. So I was thinking,
-
Hey! All this cool stuff I have to share with someone - and that's you!
-
So this is the first episode. If you want to see more, there's a
-
just follow me @emacsrocks on Twitter. Ok, First trick
-
I've been doing some Javascript testing lately and every so often I get to these situations
-
I have some local variables and I want to extract them into the setup method
-
So let's do that
-
Ok, for these variables to be available in my tests
-
I have to assign them to the test object, this.
-
And here is the trick.
-
Pay close attention to the keys I'm pressing
-
they appear in the lower right-hand corner and I will repeat it afterwards
-
Wow!
-
Did you see that? That's amazing. Let's try it again.
-
It's important that I start where I start now, just at the var
-
Because when I search for "l" like this, the mark is saved where my search started
-
so the mark is now at the beginning of the first var
-
the mark and the point of the cursor, together they form a region
-
including the three vars and the space afterwards.
-
So let me do: Control-x rectangle text
-
Which will replace the contents of the region with whatever I write.
-
That rocks!
-
So if we check up rectangles in the manual, here is the command I used
-
That was the first episode, thanks for watching
-
and follow me on @emacsrocks if you want more. Thanks.