clojure-emacs/nrepl.el — pull request #355 by vedang (2013-08-12 19:31:36+00:00)
Title: Use project name as well as connected port in nrepl buffer name

This Pull Request is based off PR #352 submitted by @jonpither

> nrepl-fooproj instead of nrepl

> The surrounding mechanics still apply so for a second clojure buffer you get nrepl-fooproj

> The name is taken from the project directory name. If no project exists, it defaults back to nrepl.

The nrepl connection port is also important information, especially in production environments.

The name will now look like

*nrepl-fooproj-4005*
*nrepl-4005*
*nrepl-fooproj*
or
*nrepl*

depending on the information available when creating the repl buffer.