Skip to content

Commit

Permalink
added a default host for the nrepl connection
Browse files Browse the repository at this point in the history
  • Loading branch information
kototama committed Sep 24, 2012
1 parent 21245f4 commit fe1d1e5
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 @@ -1703,7 +1708,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 fe1d1e5

Please sign in to comment.