prev UP NEXT GNU Emacs Lisp Reference Manual

26.1: Creating Frames

To create a new frame, call the function make-frame.

Function: make-frame alist
This function creates a new frame. If you are using X, it makes an X window frame; otherwise, it makes a terminal frame.

The argument is an alist specifying frame parameters. Any parameters not mentioned in alist default according to the value of the variable default-frame-alist; parameters not specified even there default from the standard X defaults file and X resources.

The set of possible parameters depends in principle on what kind of window system Emacs uses to display its frames. See X Frame Parameters, for documentation of individual parameters you can specify.

Variable: before-make-frame-hook
A normal hook run by make-frame before it actually creates the frame.
Variable: after-make-frame-hook
A normal hook run by make-frame after it creates the frame.