1. Computing & Technology

Discuss in my forum

Resources X

By , About.com Guide

4

You can specify a string of additional resource values for Emacs to use with the command line option -xrm resources. The text resources should have the same format that you would use inside a file of X resources. To include multiple resource specifications in resources, put a newline between them, just as you would in a file. You can also use #include "filename" to include a file full of resource specifications. Resource values specified with -xrm take precedence over all other resource specifications.

The following table lists the resource names that designate options for Emacs, each with the class that it belongs to:

  • background (class Background)
    Background color name.
  • bitmapIcon (class BitmapIcon)
    Use a bitmap icon (a picture of a gnu) if on, let the window manager choose an icon if off.
  • borderColor (class BorderColor)
    Color name for the external border.
  • borderWidth (class BorderWidth)
    Width in pixels of the external border.
  • cursorColor (class Foreground)
    Color name for text cursor (point).
  • font (class Font)
    Font name for text (or fontset name, see Fontsets).
  • foreground (class Foreground)
    Color name for text.
  • geometry (class Geometry)
    Window size and position. Be careful not to specify this resource as emacs*geometry, because that may affect individual menus as well as the Emacs frame itself.

    If this resource specifies a position, that position applies only to the initial Emacs frame (or, in the case of a resource for a specific frame name, only that frame). However, the size, if specified here, applies to all frames.

  • iconName (class Title)
    Name to display in the icon.
  • internalBorder (class BorderWidth)
    Width in pixels of the internal border.
  • lineSpacing (class LineSpacing)
    Additional space (leading) between lines, in pixels.
  • menuBar (class MenuBar)
    Give frames menu bars if on; don't have menu bars if off.
  • toolBar (class ToolBar)
    Number of lines to reserve for the tool bar. A zero value suppresses the tool bar. If the value is non-zero and auto-resize-tool-bars is non-nil, the tool bar's size will be changed automatically so that all tool bar items are visible.
  • minibuffer (class Minibuffer)
    If none, don't 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.
  • pointerColor (class Foreground)
    Color of the mouse cursor.
  • reverseVideo

©2012 About.com. All rights reserved.

A part of The New York Times Company.