(lemacs.info)Emacs under X
Prev: Mode Line Up: Screen
Using Emacs Under the X Window System
Lucid Emacs can be used with the X Window System and a window
manager like MWM or TWM. In that case, the X window manager opens,
closes, and resizes Emacs screens. You use the window manager's mouse
gestures to perform the operations. Consult your window manager guide
or reference manual for information on manipulating X windows.
When you are working under X, each X window (that is, each Emacs
screen) has a menu bar for mouse-controlled operations (Note: Pull-down
Emacs under X is also a multi-screen Emacs. You can use the New
Screen menu item from the File menu to create a new Emacs screen in a
new X window from the same process. The different screens will share
the same buffer list, but you can look at different buffers in the
The function `find-file-other-screen' is just like `find-file', but
picks a new screen to display the buffer in first. If there is only
one screen, then a new screen is created; otherwise some other screen
is used. This is normally bound to `C-x 5 C-f', and is what the Open
File, New Screen menu item does.
The function `switch-to-buffer-other-screen' is just like
`switch-to-buffer', but picks a new screen to display the buffer in
first. If there is only one screen, then a new screen is created;
otherwise some other screen is used. This is normally bound to `C-x 5
You can specify a different default screen size other than the one
provided. Use the variable `default-screen-alist', which is an alist of
default values for screen creation other than the first one. These may
be set in your init file, like this:
(setq default-screen-alist '((width . 80) (height . 55)))
For values specific to the first Emacs screen, you must use X
resources. The variable `x-screen-defaults' takes an alist of default
screen creation parameters for X window screens. These override what is
specified in `~/.Xdefaults' but are overridden by the arguments to the
particular call to `x-create-screen'.
When you create a new screen, the variable `create-screen-hook' is
called with one argument, the screen just created.
If you want to close one or more of the X windows you created using
New Screen, use the Close menu item from the File menu.
If you are working with multiple screens, some special information
* Two variables, `screen-title-format' and
`screen-icon-title-format' determine the title of the screen and
the title of the icon that results if you shrink the screen.
* The variables `auto-lower-screen' and `auto-raise-screen' position
a screen. If true, `auto-lower-screen' lowers a screen to the
bottom when it is no longer selected. If true, `auto-raise-screen'
raises a screen to the top when it is selected. Under X, most
ICCCM-compliant window managers will have options to do this for
you, but these variables are provided in case you are using a
broken window manager.
* There is a new screen/modeline format directive, %S, which expands
to the name of the current screen (a screen's name is distinct
from its title; the name is used for resource lookup, among other
things, and the title is simply what appears above the window.)
automatically generated by info2www