In an Emacs dired buffer, if I navigate point over a filename and hit o for dired-find-file-other-window
, dired successfully produces desired behavior: opening the file in a secondary window.
But if I then navigate point over a SECOND filename and again hit o, dired splits the frame AGAIN and opens the file in a THIRD window.
How do I direct dired to reuse the second window, such that I always have a maximum of two windows in a frame?
dired.el
or withdired+.el
. Do you see this happen if you start Emacs usingemacs -Q
? If not, bisect your init file recursively to find the code that causes it to happen. Do that by commenting out 1/2, then 3/4, then 7/8,... of your init file. You can usecomment-region
to comment and (withC-u
) uncomment the region. – Pharra
orRET
instead ofo
in the second window ? – Bagasse