Skip to content

Instantly share code, notes, and snippets.

@tsdeng
Created November 14, 2013 22:47
Show Gist options
  • Save tsdeng/7475688 to your computer and use it in GitHub Desktop.
Save tsdeng/7475688 to your computer and use it in GitHub Desktop.
jump to speed bar and expand the current buffer, hopefully you will see an outline of methods defined in current buffer
(defun go-to-speedbar ()
(interactive)
(let ((f-name (buffer-name)))
(sr-speedbar-open)
(sr-speedbar-select-window)
(goto-line 1)
(search-forward-regexp (concat f-name "$"))
(speedbar-expand-line)
))
(global-set-key "\C-cs" 'go-to-speedbar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment