Skip to content

Instantly share code, notes, and snippets.

@bamanzi
Created March 19, 2012 04:11
Show Gist options
  • Save bamanzi/2094473 to your computer and use it in GitHub Desktop.
Save bamanzi/2094473 to your computer and use it in GitHub Desktop.
[emacs] Best(?) way to go to a function/variable's declaration (within buffer)
(defun anything-goto-symbol ()
"Show anything list, using current symbol as input to narrow the choices."
(interactive)
(anything
:prompt "Go to:"
:candidate-number-limit 10
:input (thing-at-point 'symbol)
:sources
'( anything-c-source-imenu
anything-c-source-browse-code
anything-c-source-semantic
;; anything-c-source-info-emacs-lisp-intro
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment