I'm using (server-start) in my init.el, but I'd like to be able to launch multiple server instances, every time I launch emacs.
Today, server-start complains if the server is already launched.
It would be nice that if the server already exists, a new server name is automatically determined (like server2, server3), a new server instance launched, and the server name displayed in a message.
As I'm emacs lisp newbie, can someone please help scripting this in init.el? How to determine if serverN is already launched? List /tmp/emacs$UID?
server-startfrom the command line:emacs --eval '(progn (setq server-name "server2") (server-start))' file