Skip to content

Commit

Permalink
Add autoload cookies to three interactive commands (#59)
Browse files Browse the repository at this point in the history
dumb-jump-go, dumb-jump-back, dumb-jump-quick-look can be called before requiring `dumb-jump.el`
  • Loading branch information
10sr authored and jacktasia committed Jul 7, 2016
1 parent d75ae09 commit 7d0e0a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ denoter file/dir is found or uses dumb-jump-default-profile"

`(:results ,results :lang ,(if (null lang) "" lang) :symbol ,look-for :ctx-type ,(if (null ctx-type) "" ctx-type) :file ,cur-file :root ,proj-root)))

;;;###autoload
(defun dumb-jump-back ()
"Jump back to where the last jump was done"
(interactive)
Expand All @@ -731,11 +732,13 @@ denoter file/dir is found or uses dumb-jump-default-profile"
(dumb-jump-goto-file-point path point))
(dumb-jump-message "Nowhere to jump back to.")))

;;;###autoload
(defun dumb-jump-quick-look ()
"Run dump-jump-go in quick look mode. That is, show a tooltip of where it would jump instead"
(interactive)
(dumb-jump-go t))

;;;###autoload
(defun dumb-jump-go (&optional use-tooltip)
"Go to the function/variable declaration for thing at point"
(interactive "P")
Expand Down

0 comments on commit 7d0e0a0

Please sign in to comment.