In my init.el
I have the below setting for the initial frame position:
(setq default-frame-alist
'((top . 80) (left . 300) (width . 85) (height . 45)))
When I open a file in a new frame, it overlaps the previous frame.
How do I set the position of the new frame to be, for example, x
width and y
height from the previous frame?
This is so that the new frame will not overlap with the previous frame and all open frames (windows) will be clearly visible.
initial-frame-alist
, and then put different values indefault-frame-alist
. The first frame created at startup will use the former, and then all others will use the latter.initial-frame-alist
and different (offset) values indefault-frame-alist
. The first emacs frame and next frame (on doingC-x 5 2
once) are offset, but doingC-x 5 2
again makes the second and third frame overlap, and so on.