Permalink
Browse files

accept host as well as port

  • Loading branch information...
kenrestivo committed Sep 1, 2012
1 parent feb032e commit b6154daf4e0d6f5f658b58da7f26013552e0a3d6
Showing with 3 additions and 3 deletions.
  1. +3 −3 nrepl.el
View
@@ -1574,10 +1574,10 @@ under point, prompts for a var."
(add-hook 'nrepl-connected-hook 'nrepl-enable-on-existing-clojure-buffers)
;;;###autoload
-(defun nrepl (port)
- (interactive "nPort: ")
+(defun nrepl (host port)
+ (interactive "MHost: \nnPort: ")
(let ((nrepl-buffer (switch-to-buffer-other-window (generate-new-buffer-name "*nrepl*")))
- (process (nrepl-connect "localhost" port)))
+ (process (nrepl-connect host port)))
(nrepl-init-repl-buffer process nrepl-buffer)))
(provide 'nrepl)

0 comments on commit b6154da

Please sign in to comment.