eschulte / emacs-web-server

web server running Emacs Lisp handlers.
eschulte.github.io/emacs-web-server/index.html#Top
GNU General Public License v3.0
173 stars 30 forks source link

Support using a random port number? #25

Closed zbelial closed 3 years ago

zbelial commented 3 years ago

Hi I think using a random port number is a useful feature(actually I need it now :) ), do you also think so? If so, I can post a PR to support it. Thanks.

eschulte commented 3 years ago

Given that ws-start already takes the port as an argument I think it should be easy enough for users to pick a random number themselves and pass that to ws-start.

amygrinn commented 3 years ago

FYI, passing t to ws-start will generate a random port already.