Communicating with the X Server

Emacs LISP also supports numerous functions for communicating with the X server. We won’t describe all of them here, but just name a handful of the most important ones to give the flavor of what’s available.

For getting information about your server’s capabilities that may be helpful in display layout, you have x-display-pixel-height, x-display-pixel-width, x-display-mm-height, x-display-mm-width, x-display-planes, x-display-backing-store, and x-display-color-cells, and x-display-color-p. You can also change the sequences of characters sent by keyboard keys with x-rebind-key.

In general, all these X environment functions have the name prefix x-. Therefore, you can see the whole list of them by giving x- as a prefix to the Emacs help system’s apropos function.

Get Learning GNU Emacs, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.