emacs-rotate
emacs-rotate copied to clipboard
When there is only one window, can rotate-layout split the window?
I often start with one window, and also use rotate-layout regularly. If there is one window then I would like rotate-layout to split the window. Is this possible?
It seems to me it would be kind of like a dwim function, though I may have misunderstood what dwim means, somewhat ironically.
I would be happy to attempt to contribute a PR for this if it is desired. Fair warning though, I am an elisp noob.
It is a little late :) But you could wrap the rotate-layout in your own function and check the length
of windows and make an educated guess to whether split or not, and then call rotate-layout.