Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to save frame position in Emacs?

When I'm using Emacs, I sometimes connect my MacBook to an external monitor. I then create a new, second frame, which I drag to the external monitor and then maximize.

The result is that within Emacs, I have two maximized frames, one on my laptop display and one on my external monitor.

I'd like to save this configuration so I don't have to do this manually each time. Ideally I could restore the frame positions with one keystroke every time I connect my external monitor.

How do I do this? I use Aquamacs on OSX.

like image 208
incandescentman Avatar asked Oct 18 '25 09:10

incandescentman


1 Answers

Since Emacs 24 you can use desktop-save-mode Session management

like image 85
marcanuy Avatar answered Oct 21 '25 03:10

marcanuy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!