Return to Video

Emacs Rocks! Episode 01: From var to this

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

http://emacsrocks.com - Rocking emacs tricks and tips screencast.

Follow me on twitter: @emacsrocks

more » « less
Video Language:
English
Duration:
02:47

English subtitles

Revisions