* Position of frames
@ 2012-09-09 6:58 Erich Neuwirth
2012-09-09 7:11 ` Drew Adams
0 siblings, 1 reply; 2+ messages in thread
From: Erich Neuwirth @ 2012-09-09 6:58 UTC (permalink / raw)
To: help-gnu-emacs
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Position of frames
2012-09-09 6:58 Position of frames Erich Neuwirth
@ 2012-09-09 7:11 ` Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2012-09-09 7:11 UTC (permalink / raw)
To: 'Erich Neuwirth', help-gnu-emacs
> Is there a way I can control these settings for any new
> frames from .emacs?
Customize user option `default-frame-alist'. For special-display buffers,
customize `special-display-frame-alist'.
For recent Emacs 24 builds you can alternatively customize option
`display-buffer-alist' (if you can understand it).
(There is also an option `initial-frame-alist', but you probably won't need to
fiddle with that.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-09 7:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-09 6:58 Position of frames Erich Neuwirth
2012-09-09 7:11 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.