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
;;; 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 :)" | |
(interactive) | |
(let ((text (thing-at-point 'word))) | |
(push (point) *quasi-js-current-pos*) |