diff options
-rw-r--r-- | nrepl-client.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nrepl-client.el b/nrepl-client.el index e225495d..0dc046bb 100644 --- a/nrepl-client.el +++ b/nrepl-client.el @@ -1084,6 +1084,7 @@ the port, and the client buffer." (goto-char (process-mark process)) (-when-let (win (get-buffer-window)) (set-window-point win (point)))))) + ;; detect the port the server is listening on from its output (when (string-match "nREPL server started on port \\([0-9]+\\)" output) (let ((port (string-to-number (match-string 1 output)))) (message "nREPL server started on %s" port) |