uniquify-buffer-name-style

uniquify-buffer-name-style is a variable defined in `uniquify.el'.
Its value is
post-forward-angle-brackets


Documentation:
How to construct unique buffer names for files with the same base name.
The value can be one of: `forward', `reverse', `post-forward',
`post-forward-angle-brackets', or nil.

For example, the files `/foo/bar/mumble/name' and `/baz/quux/mumble/name'
would have the following buffer names in the various styles:

forward bar/mumble/name quux/mumble/name
reverse name\mumble\bar name\mumble\quux
post-forward name|bar/mumble name|quux/mumble
post-forward-angle-brackets name name
nil name name<2>

The "mumble" part may be stripped as well, depending on the
setting of `uniquify-strip-common-suffix'. For more options that
you can set, browse the `uniquify' custom group.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 24.4 of Emacs.