Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When there is only one window, can rotate-layout split the window? #7

Open
cammil opened this issue Jun 6, 2020 · 1 comment
Open

Comments

@cammil
Copy link

cammil commented Jun 6, 2020

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.

@basaran
Copy link

basaran commented Sep 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants