Skip to content

Commit

Permalink
Merge pull request #118 from Hi-Angel/master
Browse files Browse the repository at this point in the history
Allow functions to be called non-interactively, e.g. from a code
  • Loading branch information
kngwyu authored Jan 24, 2019
2 parents d043998 + 839d38c commit 22636dd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions racer.el
Original file line number Diff line number Diff line change
Expand Up @@ -767,17 +767,20 @@ Note that this feature is only available when `company-mode' is installed."
;;;###autoload
(defun racer-find-definition ()
"Run the racer find-definition command and process the results."
(interactive (racer--find-definition #'find-file)))
(interactive)
(racer--find-definition #'find-file))

;;;###autoload
(defun racer-find-definition-other-window ()
"Run the racer find-definition command and process the results."
(interactive (racer--find-definition #'find-file-other-window)))
(interactive)
(racer--find-definition #'find-file-other-window))

;;;###autoload
(defun racer-find-definition-other-frame ()
"Run the racer find-definition command and process the results."
(interactive (racer--find-definition #'find-file-other-frame)))
(interactive)
(racer--find-definition #'find-file-other-frame))

(defun racer--syntax-highlight (str)
"Apply font-lock properties to a string STR of Rust code."
Expand Down

0 comments on commit 22636dd

Please sign in to comment.