0:00:00.000,0:00:03.033 Hi Welcome to Emacs Rocks! 0:00:03.033,0:00:07.384 I just started using Emacs. I've been using TextMate for a few years and 0:00:08.122,0:00:12.234 I've been looking for something else. I tried vim, it's nice. 0:00:13.495,0:00:16.858 But I've been using Emacs for a few weeks now and 0:00:16.858,0:00:21.400 I'm really loving it, it's awesome. So I was thinking, 0:00:21.400,0:00:26.190 Hey! All this cool stuff I have to share with someone - and that's you! 0:00:26.467,0:00:32.200 So this is the first episode. If you want to see more, there's a 0:00:32.200,0:00:36.900 just follow me @emacsrocks on Twitter. Ok, First trick 0:00:39.869,0:00:46.633 I've been doing some Javascript testing lately and every so often I get to these situations 0:00:46.633,0:00:51.041 I have some local variables and I want to extract them into the setup method 0:00:51.348,0:00:53.157 So let's do that 0:01:05.003,0:01:08.900 Ok, for these variables to be available in my tests 0:01:08.900,0:01:12.933 I have to assign them to the test object, this. 0:01:13.394,0:01:14.479 And here is the trick. 0:01:17.879,0:01:23.010 Pay close attention to the keys I'm pressing 0:01:23.071,0:01:27.231 they appear in the lower right-hand corner and I will repeat it afterwards 0:01:38.792,0:01:40.375 Wow! 0:01:40.929,0:01:44.700 Did you see that? That's amazing. Let's try it again. 0:01:48.682,0:01:52.869 It's important that I start where I start now, just at the var 0:01:53.423,0:02:00.700 Because when I search for "l" like this, the mark is saved where my search started 0:02:00.700,0:02:04.691 so the mark is now at the beginning of the first var 0:02:04.691,0:02:10.840 the mark and the point of the cursor, together they form a region 0:02:10.840,0:02:14.721 including the three vars and the space afterwards. 0:02:14.721,0:02:19.684 So let me do: Control-x rectangle text 0:02:21.155,0:02:25.475 Which will replace the contents of the region with whatever I write. 0:02:27.215,0:02:29.641 That rocks! 0:02:31.185,0:02:36.571 So if we check up rectangles in the manual, here is the command I used 0:02:40.149,0:02:43.352 That was the first episode, thanks for watching 0:02:43.352,9:59:59.000 and follow me on @emacsrocks if you want more. Thanks.