1 00:00:00,000 --> 00:00:03,033 Hi Welcome to Emacs Rocks! 2 00:00:03,033 --> 00:00:07,384 I just started using Emacs. I've been using TextMate for a few years and 3 00:00:08,122 --> 00:00:12,234 I've been looking for something else. I tried vim, it's nice. 4 00:00:13,495 --> 00:00:16,858 But I've been using Emacs for a few weeks now and 5 00:00:16,858 --> 00:00:21,400 I'm really loving it, it's awesome. So I was thinking, 6 00:00:21,400 --> 00:00:26,190 Hey! All this cool stuff I have to share with someone - and that's you! 7 00:00:26,467 --> 00:00:32,200 So this is the first episode. If you want to see more, there's a 8 00:00:32,200 --> 00:00:36,900 just follow me @emacsrocks on Twitter. Ok, First trick 9 00:00:39,869 --> 00:00:46,633 I've been doing some Javascript testing lately and every so often I get to these situations 10 00:00:46,633 --> 00:00:51,041 I have some local variables and I want to extract them into the setup method 11 00:00:51,348 --> 00:00:53,157 So let's do that 12 00:01:05,003 --> 00:01:08,900 Ok, for these variables to be available in my tests 13 00:01:08,900 --> 00:01:12,933 I have to assign them to the test object, this. 14 00:01:13,394 --> 00:01:14,479 And here is the trick. 15 00:01:17,879 --> 00:01:23,010 Pay close attention to the keys I'm pressing 16 00:01:23,071 --> 00:01:27,231 they appear in the lower right-hand corner and I will repeat it afterwards 17 00:01:38,792 --> 00:01:40,375 Wow! 18 00:01:40,929 --> 00:01:44,700 Did you see that? That's amazing. Let's try it again. 19 00:01:48,682 --> 00:01:52,869 It's important that I start where I start now, just at the var 20 00:01:53,423 --> 00:02:00,700 Because when I search for "l" like this, the mark is saved where my search started 21 00:02:00,700 --> 00:02:04,691 so the mark is now at the beginning of the first var 22 00:02:04,691 --> 00:02:10,840 the mark and the point of the cursor, together they form a region 23 00:02:10,840 --> 00:02:14,721 including the three vars and the space afterwards. 24 00:02:14,721 --> 00:02:19,684 So let me do: Control-x rectangle text 25 00:02:21,155 --> 00:02:25,475 Which will replace the contents of the region with whatever I write. 26 00:02:27,215 --> 00:02:29,641 That rocks! 27 00:02:31,185 --> 00:02:36,571 So if we check up rectangles in the manual, here is the command I used 28 00:02:40,149 --> 00:02:43,352 That was the first episode, thanks for watching 29 00:02:43,352 --> 99:59:59,999 and follow me on @emacsrocks if you want more. Thanks.