0:00:00.735,0:00:03.252 Welcome back to emacs rocks 0:00:03.252,0:00:10.376 Today we're taking a look at two of my favorite ways of jumping around 0:00:12.653,0:00:14.853 First out is ace-jump-mode 0:00:14.853,0:00:20.869 I want to jump to the word "strict" in that "use strict" declaration at the top 0:00:20.869,0:00:23.835 Wow, that was fast! 0:00:23.835,0:00:30.154 Now, the third instance of the word rows in that return statement 0:00:30.154,0:00:32.602 Again, straight to it! 0:00:32.602,0:00:37.518 And I can jump straight back to where I started by popping the mark 0:00:37.518,0:00:40.403 Okay, let's do that in slower motion 0:00:40.403,0:00:42.034 I initialize ace-jump-mode, 0:00:42.034,0:00:46.884 and then type the starting letter of the word I want to jump to: S 0:00:46.884,0:00:51.502 notice how everything is greyed out, and the S is replaced by a red A 0:00:51.502,0:00:53.552 I press A 0:00:53.552,0:00:56.803 Next up is the word rows, starts with R 0:00:56.803,0:01:01.467 See how all the words starting with R has its own letter? 0:01:01.467,0:01:05.203 The one I want is number five from the top, or E 0:01:05.203,0:01:09.480 Again, pop mark to get back 0:01:12.034,0:01:14.404 I can also jump into the middle of a word 0:01:14.404,0:01:17.469 by giving ace-jump-mode a prefix argument 0:01:17.469,0:01:23.180 Like to the word "shape" in validateNonEmptyShape 0:01:23.534,0:01:26.084 That was ace-jump-mode 0:01:26.084,0:01:29.007 And it is ... ace! 0:01:30.284,0:01:32.485 Next up is ido-imenu 0:01:32.485,0:01:35.269 Depending on your major mode, it find symbols in the buffer 0:01:35.269,0:01:38.854 and lets you jump quickly to them. 0:01:41.654,0:01:44.785 I'd like to use pop-mark to jump back here aswell 0:01:44.785,0:01:48.403 but ido-imenu doesn't set the mark before jumping. 0:01:48.403,0:01:50.985 Luckily we're using a truly extensible editor, 0:01:50.985,0:01:53.270 so I fixed that. 0:01:54.085,0:01:56.502 Here's the script 0:01:56.502,0:01:59.683 and you can find it at this gist. 0:02:04.437,9:59:59.000 Thanks for watching emacs rocks.