Emacs: Switching Between Buffers with the Same Name but in Different Directories <p>I have two files with the same name but in different directories:</p> <pre><code>apples/main.cpp oranges/main.cpp </code></pre> <p>I open them in one emacs window via <code>emacs apples/main.cpp oranges/main.cpp</code></p> <p>When I use <code>C-x b</code> to switch between these two buffers, the buffer names are "main.cpp" and "main.cpp&lt;2>". I would love to be able to see the full path of these two files when switching buffers, so that I may disambiguate between the apples and the oranges version. Is there a way to do this?</p> <p>One way could be to modify whatever code generates the &lt;2> after the second main.cpp when Emacs detects that a buffer with that name is already open. However, I couldn't find how to do this.</p>