Linux

  1. Home
  2. Computing & Technology
  3. Linux

Lucid Resources

Emacs Documentation

By Juergen Haas, About.com

Lucid Menu X Resources

If the Emacs installed at your site was built to use the X toolkit with the Lucid menu widgets, then the menu bar is a separate widget and has its own resources. The resource names contain pane.menubar (following, as always, the name of the Emacs invocation, or Emacs, which stands for all Emacs invocations). Specify them like this:

Emacs.pane.menubar.resource: value

For example, to specify the font 8x16 for the menu-bar items, write this:

Emacs.pane.menubar.font: 8x16

Resources for non-menubar toolkit pop-up menus have menu*, in like fashion. For example, to specify the font 8x16 for the pop-up menu items, write this:

Emacs.menu*.font: 8x16

For dialog boxes, use dialog instead of menu:

Emacs.dialog*.font: 8x16

Experience shows that on some systems you may need to add shell. before the pane.menubar or menu*. On some other systems, you must not add shell..

Here is a list of the specific resources for menu bars and pop-up menus:

  • font
    Font for menu item text.
  • foreground
    Color of the foreground.
  • background
    Color of the background.
  • buttonForeground
    In the menu bar, the color of the foreground for a selected item.
  • horizontalSpacing
    Horizontal spacing in pixels between items. Default is 3.
  • verticalSpacing
    Vertical spacing in pixels between items. Default is 1.
  • arrowSpacing
    Horizontal spacing between the arrow (which indicates a submenu) and the associated text. Default is 10.
  • shadowThickness
    Thickness of shadow line around the widget.
  • margin
    The margin of the menu bar, in characters. The default of 4 makes the menu bar appear like the LessTif/Motif one.

* Emacs Manual Index

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Software
  5. Editors
  6. Emacs
  7. Emacs Documentation - Lucid Resources

©2009 About.com, a part of The New York Times Company.

All rights reserved.