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.