D.2 Table of X Resources for Emacs
The table below lists the X resource names that Emacs recognizes. Note that some of the resources have no effect in Emacs compiled with various X toolkits (GTK+, Lucid, etc.)βwe indicate below when this is the case.
background (class Background)β
Background color (see Colors).
bitmapIcon (class BitmapIcon)β
Tell the window manager to display the Emacs icon if βonβ; donβt do so if βoffβ. See Icons X, for a description of the icon.
borderColor (class BorderColor)β
Color of the frameβs external border. This has no effect if Emacs is compiled with GTK+ support.
borderWidth (class BorderWidth)β
Width of the frameβs external border, in pixels. This has no effect if Emacs is compiled with GTK+ support.
cursorBlink (class CursorBlink)β
If the value of this resource is βoffβ or βfalseβ or β0β at startup, Emacs disables Blink Cursor mode (see Cursor Display).
cursorColor (class Foreground)β
Text cursor color. If this resource is specified when Emacs starts up, Emacs sets its value as the background color of the cursor face (see Faces).
font (class Font)β
Font name for the default face (see Fonts). You can also specify a fontset name (see Fontsets).
fontBackend (class FontBackend)β
Comma-delimited list of backend(s) to use for drawing fonts, in order of precedence. For instance, the value βx,xftβ tells Emacs to draw fonts using the X core font driver, falling back on the Xft font driver if that fails. Normally, you should leave this resource unset, in which case Emacs tries using all available font backends.
foreground (class Foreground)β
Default foreground color for text.
fullscreen (class Fullscreen)β
The desired fullscreen size. The value can be one of fullboth, maximized, fullwidth or fullheight, which correspond to the command-line options β-fsβ, β-mmβ, β-fwβ, and β-fhβ (see Window Size X). Note that this applies to the initial frame only.
geometry (class Geometry)β
Window size and position. The value should be a size and position specification, of the same form as in the β-gβ or β--geometryβ command-line option (see Window Size X).
The size applies to all frames in the Emacs session, but the position applies only to the initial Emacs frame (or, in the case of a resource for a specific frame name, only that frame).
Be careful not to specify this resource as βemacs*geometryβ, as that may affect individual menus as well as the main Emacs frame.
horizontalScrollBars (class ScrollBars)β
If the value of this resource is βoffβ or βfalseβ or β0β, Emacs disables Horizontal Scroll Bar mode at startup (see Scroll Bars).
iconName (class Title)β
Name to display in the icon.
internalBorder (class BorderWidth)β
Width of the internal frame border, in pixels.
lineSpacing (class LineSpacing)β
Additional space between lines, in pixels.
menuBackground (class Background)β
The background color of the menus in non-toolkit versions of Emacs. (For toolkit versions, see Lucid Resources, also see Motif Resources, and see GTK resources.)
menuBar (class MenuBar)β
If the value of this resource is βoffβ or βfalseβ or β0β, Emacs disables Menu Bar mode at startup (see Menu Bars).
minibuffer (class Minibuffer)β
If βnoneβ, Emacs will not make a minibuffer in this frame; it will use a separate minibuffer frame instead.
paneFont (class Font)β
Font name for menu pane titles, in non-toolkit versions of Emacs. (For toolkit versions, see Lucid Resources, also see Motif Resources, and see GTK resources.)
paneForeground (class Foreground)β
Foreground color for menu pane titles, in non-toolkit versions of Emacs. (For toolkit versions, see Lucid Resources, also see Motif Resources, and see GTK resources.)
pointerColor (class Foreground)β
Color of the mouse cursor. This has no effect in many graphical desktop environments, as they do not let Emacs change the mouse cursor this way.
privateColormap (class PrivateColormap)β
If βonβ, use a private color map, in the case where the default visual of class PseudoColor and Emacs is using it.
reverseVideo (class ReverseVideo)β
Switch foreground and background default colors if βonβ, use colors as specified if βoffβ.
screenGamma (class ScreenGamma)β
Gamma correction for colors, equivalent to the frame parameter screen-gamma.
scrollBar (class ScrollBar)β
If the value of this resource is βoffβ or βfalseβ or β0β, Emacs disables Scroll Bar mode at startup (see Scroll Bars).
scrollBarWidth (class ScrollBarWidth)β
The scroll bar width in pixels, equivalent to the frame parameter scroll-bar-width. Do not set this resource if Emacs is compiled with GTK+ support.
selectionFont (class SelectionFont)β
Font name for pop-up menu items, in non-toolkit versions of Emacs. (For toolkit versions, see Lucid Resources, also see Motif Resources, and see GTK resources.)
selectionForeground (class SelectionForeground)β
Foreground color for pop-up menu items, in non-toolkit versions of Emacs. (For toolkit versions, see Lucid Resources, also see Motif Resources, and see GTK resources.)
selectionTimeout (class SelectionTimeout)β
Number of milliseconds to wait for a selection reply. If the selection owner doesnβt reply in this time, we give up. A value of 0 means wait as long as necessary.
synchronous (class Synchronous)β
Run Emacs in synchronous mode if βonβ. Synchronous mode is useful for debugging X problems.
title (class Title)β
Name to display in the title bar of the initial Emacs frame.
toolBar (class ToolBar)β
If the value of this resource is βoffβ or βfalseβ or β0β, Emacs disables Tool Bar mode at startup (see Tool Bars).
tabBar (class TabBar)β
If the value of this resource is βonβ or βyesβ or β1β, Emacs enables Tab Bar mode at startup (see Tab Bars).
useXIM (class UseXIM)β
Disable use of X input methods (XIM) if βfalseβ or βoffβ. This is only relevant if your Emacs is built with XIM support. It might be useful to turn off XIM on slow X client/server links.
verticalScrollBars (class ScrollBars)β
Give frames scroll bars on the left if βleftβ, on the right if βrightβ; donβt have scroll bars if βoffβ (see Scroll Bars).
visualClass (class VisualClass)β
The visual class for X color display. If specified, the value should start with one of βTrueColorβ, βPseudoColorβ, βDirectColorβ, βStaticColorβ, βGrayScaleβ, and βStaticGrayβ, followed by β-depthβ, where depth is the number of color planes.
You can also use X resources to customize individual Emacs faces (see Faces). For example, setting the resource βface.attributeForegroundβ is equivalent to customizing the βforegroundβ attribute of the face face. However, we recommend customizing faces from within Emacs, instead of using X resources. See Face Customization.