joostkremers / writeroom-mode

Writeroom-mode: distraction-free writing for Emacs.
BSD 3-Clause "New" or "Revised" License
611 stars 28 forks source link

writeroom-mode should restore windows configuration after exit writeroom-mode #53

Closed stardiviner closed 4 years ago

stardiviner commented 4 years ago

When I enable writeroom-mode, it setting something and keep only one window. When I exit it with command writeroom-mode too. The original windows configuration is gone. I hope writeroom-mode can save and restore around toggling writeroom-mode.

joostkremers commented 4 years ago

There is an option that controls this: writeroom-restore-window-config. By default, this is unset, but you can set it in the customization group for writeroom, or in your init file:

(setq writeroom-restore-window-config t)
stardiviner commented 4 years ago

Thanks @joostkremers