help-gnu-emacs
[Top][All Lists]
Advanced

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

Position of frames


From: Erich Neuwirth
Subject: Position of frames
Date: Sun, 9 Sep 2012 08:58:54 +0200

In my .emacs I have the followind code to set the size and the position of the 
frame 
opened at startup

(defun arrange-frame (w h x y)
  "Set the width, height, and x/y position of the current frame"
  (let ((frame (selected-frame)))
    (delete-other-windows)
    (set-frame-position frame x y)
    (set-frame-size frame w h)))


(arrange-frame 80 50 500 50)


It works at startup. But when I open another frame with C-x 5 2,
the new frame does not use size and position as described above.

Is there a way I can control these settings for any new frames from .emacs?




reply via email to

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