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

How to save and restore layouts? #4

Open
seagle0128 opened this issue Aug 5, 2016 · 2 comments
Open

How to save and restore layouts? #4

seagle0128 opened this issue Aug 5, 2016 · 2 comments

Comments

@seagle0128
Copy link

This is the new requirement: save and restore layouts automatically.

I want to reload layouts after restarting Emacs. It's much better experience.

@etu
Copy link
Owner

etu commented Aug 6, 2016

Hello,

This is the new requirement: save and restore layouts automatically.

I sure hope you mean request and not requirement. Because making such demands is weird for a project like this.

I want to reload layouts after restarting Emacs. It's much better experience.

I can agree with you that this would be a very nice way of working with it, but due to the nature of how the mode stores which buffers is open and how the frames are placed... I don't think theres a good way to store on disk between sessions.

If you do like this things will get weird:

  • Do a new layout
  • Open some buffers/files, rearrange stuff as you like
  • Switch to another/new layout
  • Kill one of the buffers you had visible before switching
  • Switch back

Same situation with opening the correct buffer would be an issue when reloading a layout from disk since no of the buffers is open. And some buffers can probably not be stored correctly due to the nature of the buffer. I've use this alot for switching between code and SQL editor, and the SQL requires that you have an SQL connection, which we just can't make out of the blue.

But it would be a nice feature to only store the layouts to disk so you can use pre-defined layouts and then put buffers in them for usage or something like that.

Pull requests are always welcome :)

@seagle0128
Copy link
Author

Thanks for your update!
Yes, you are correct. I mean it's a request. What I need is just to store and restore the layouts, maybe some pre-defined layouts.

Mmm, let me think about it. If I have some ideas, I'd like to submit a PR.

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

No branches or pull requests

2 participants