[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.74,0:00:03.25,Default,,0000,0000,0000,,Welcome back to emacs rocks Dialogue: 0,0:00:03.25,0:00:10.38,Default,,0000,0000,0000,,Today we're taking a look at two of my favorite ways of jumping around Dialogue: 0,0:00:12.65,0:00:14.85,Default,,0000,0000,0000,,First out is ace-jump-mode Dialogue: 0,0:00:14.85,0:00:20.87,Default,,0000,0000,0000,,I want to jump to the word "strict" in that "use strict" declaration at the top Dialogue: 0,0:00:20.87,0:00:23.84,Default,,0000,0000,0000,,Wow, that was fast! Dialogue: 0,0:00:23.84,0:00:30.15,Default,,0000,0000,0000,,Now, the third instance of the word rows in that return statement Dialogue: 0,0:00:30.15,0:00:32.60,Default,,0000,0000,0000,,Again, straight to it! Dialogue: 0,0:00:32.60,0:00:37.52,Default,,0000,0000,0000,,And I can jump straight back to where I started by popping the mark Dialogue: 0,0:00:37.52,0:00:40.40,Default,,0000,0000,0000,,Okay, let's do that in slower motion Dialogue: 0,0:00:40.40,0:00:42.03,Default,,0000,0000,0000,,I initialize ace-jump-mode, Dialogue: 0,0:00:42.03,0:00:46.88,Default,,0000,0000,0000,,and then type the starting letter of the word I want to jump to: S Dialogue: 0,0:00:46.88,0:00:51.50,Default,,0000,0000,0000,,notice how everything is greyed out, and the S is replaced by a red A Dialogue: 0,0:00:51.50,0:00:53.55,Default,,0000,0000,0000,,I press A Dialogue: 0,0:00:53.55,0:00:56.80,Default,,0000,0000,0000,,Next up is the word rows, starts with R Dialogue: 0,0:00:56.80,0:01:01.47,Default,,0000,0000,0000,,See how all the words starting with R has its own letter? Dialogue: 0,0:01:01.47,0:01:05.20,Default,,0000,0000,0000,,The one I want is number five from the top, or E Dialogue: 0,0:01:05.20,0:01:09.48,Default,,0000,0000,0000,,Again, pop mark to get back Dialogue: 0,0:01:12.03,0:01:14.40,Default,,0000,0000,0000,,I can also jump into the middle of a word Dialogue: 0,0:01:14.40,0:01:17.47,Default,,0000,0000,0000,,by giving ace-jump-mode a prefix argument Dialogue: 0,0:01:17.47,0:01:23.18,Default,,0000,0000,0000,,Like to the word "shape" in validateNonEmptyShape Dialogue: 0,0:01:23.53,0:01:26.08,Default,,0000,0000,0000,,That was ace-jump-mode Dialogue: 0,0:01:26.08,0:01:29.01,Default,,0000,0000,0000,,And it is ... ace! Dialogue: 0,0:01:30.28,0:01:32.48,Default,,0000,0000,0000,,Next up is ido-imenu Dialogue: 0,0:01:32.48,0:01:35.27,Default,,0000,0000,0000,,Depending on your major mode, it find symbols in the buffer Dialogue: 0,0:01:35.27,0:01:38.85,Default,,0000,0000,0000,,and lets you jump quickly to them. Dialogue: 0,0:01:41.65,0:01:44.78,Default,,0000,0000,0000,,I'd like to use pop-mark to jump back here aswell Dialogue: 0,0:01:44.78,0:01:48.40,Default,,0000,0000,0000,,but ido-imenu doesn't set the mark before jumping. Dialogue: 0,0:01:48.40,0:01:50.98,Default,,0000,0000,0000,,Luckily we're using a truly extensible editor, Dialogue: 0,0:01:50.98,0:01:53.27,Default,,0000,0000,0000,,so I fixed that. Dialogue: 0,0:01:54.08,0:01:56.50,Default,,0000,0000,0000,,Here's the script Dialogue: 0,0:01:56.50,0:01:59.68,Default,,0000,0000,0000,,and you can find it at this gist. Dialogue: 0,0:02:04.44,9:59:59.99,Default,,0000,0000,0000,,Thanks for watching emacs rocks.