Skip to content

Commit

Permalink
Allow functions to be called non-interactively, e.g. from a code
Browse files Browse the repository at this point in the history
Fixes: #117

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
  • Loading branch information
Hi-Angel committed Jan 23, 2019
1 parent d043998 commit 839d38c
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 839d38c

Please sign in to comment.