NOTE: I added more info to this query. Initially, I didn't mention dired
, but after experimenting, I see that it needs to be explicitly discussed here, because of how it manages buffers.
I'm using emacs-27.2
. I am looking for what I consider to be an "exotic" (i.e., non-standard) way to split a buffer between two windows when using dired
, as follows:
- Enter dired
- Split the dired buffer into two windows
- The two windows are next to each other, left and right, in the same frame.
- The same dired info appears in both windows.
- In the leftmost window, the topmost lines of the dired list appear, with the cursor initially automatically positioned to the first line of the dired list as soon as I enter this mode.
- In the rightmost window, the bottommost lines of the dired list appear, with the cursor initially automatically positioned to the last line of the dired list as soon as I enter this mode.
- As soon as select a subdirectory in the dired list of one of the windows, the directory gets displayed at the same time in the other window, with the top of the buffer showing in the leftmost window and the bottom of the buffer showing in the rightmost window, as described above.
I want all of these characteristics exactly as described, not just a subset of them nor any kind of variation.
I know how to split the window, and I'm sure that I can figure out how to write a function to accomplish what I want. However, before I "reinvent the wheel", I'm wondering if there already is some sort of command or mode which can give me this functionality.