Created
November 14, 2013 22:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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