Skip to content

Instantly share code, notes, and snippets.


quasibaba quasi

View GitHub Profile
quasi / js-function-lookup.el
Last active Jan 2, 2016
For js2-mode, to go to function definition and back. I sorely missed the M-. and M-, from SLIME.
View js-function-lookup.el
;;; Find JS function definition in your current buffer (and go back).
(defvar *quasi-js-current-pos* nil)
(defun quasi-js-function-search ()
"Search for JS function definations. In a rather dumb way, but works, albeit only for current buffer.
Works recurcively too :)"
(let ((text (thing-at-point 'word)))
(push (point) *quasi-js-current-pos*)