emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to control where frames get created?


From: martin rudalics
Subject: Re: Is there a way to control where frames get created?
Date: Sun, 30 Sep 2018 09:57:48 +0200

> I'd like to rig things up so that make-frame-command creates its new
> frame adjacent to the existing frame if that's geometrically
> possible on the GUI display. To do that, I'd need to both be able to
> find out where the existing frame is, and to tell make-frame-command
> where to create the new frame.
>
> Are there any hooks that make this possible? Any advice on how I might
> go about doing it?

To put a frame right on the right of the selected one use

(make-frame `((left . ,(+ (car (frame-position)) (frame-outer-width)))
              (top . ,(cdr (frame-position)))))

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]