It's possible to add a line to one's
(add-to-list 'default-frame-alist '(fullscreen . maximized))
that will make
make-frame-command (C-x 5 2) spawn maximized windows.
It's also possible to distinguish this customization
(add-to-list 'initial-frame-alist '(fullscreen . maximized)) (add-to-list 'default-frame-alist '(fullscreen . fullheight))
for the initial and the default frames.
I would like the customization to be based instead on whether I'm using an external monitor.
- If I'm using the laptop's built-in display, I'd like the (initial and default) frames to be maximized.
- If I've connected the laptop to an external display, I'd like the (initial and default) frames to use only 60% of the width and 60% of the height.
Is this possible? How?
A solution that only works on a MacBook is welcome and sufficient for me.