Skip to content

Commit

Permalink
Merge pull request #119 from kototama/master
Browse files Browse the repository at this point in the history
Default host for the connection
  • Loading branch information
kingtim committed Oct 4, 2012
2 parents d5d39a9 + fe1d1e5 commit bf35712
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nrepl.el
Expand Up @@ -66,6 +66,11 @@
:type 'hook
:group 'nrepl)

(defcustom nrepl-host "127.0.0.1"
"The default hostname (or IP address) to connect to."
:type 'string
:group 'nrepl)

(defvar nrepl-version "0.1.5-preview"
"The current nrepl version.")

Expand Down Expand Up @@ -1755,7 +1760,8 @@ restart the server."

;;;###autoload
(defun nrepl (host port)
(interactive "MHost: \nnPort: ")
(interactive (list (read-from-minibuffer "Host: " nrepl-host)
(read-from-minibuffer "Port: ")))
(nrepl-connect host port))

(provide 'nrepl)
Expand Down

0 comments on commit bf35712

Please sign in to comment.