Smarter default port

23 views
Skip to first unread message

Jim Crossley

unread,
May 13, 2013, 6:49:42 PM5/13/13
to nrep...@googlegroups.com
Howdy. Recently Immutant adopted Leiningen's convention of writing the nrepl server's port to target/repl-port, particularly handy when the specified port is 0.

Anyhoo, I have the nrepl function a bit smarter about the default port prompted when in a project directory and that file exists, otherwise falling back to using the nrepl-port custom variable. I like it for either connecting to Immutant's repl or Leiningen's if started using 'lein repl' instead of nrepl-jack-in.

If that sounds reasonable, I'm happy to submit a PR.

Thanks,
Jim
Reply all
Reply to author
Forward
0 new messages