Go to the first, previous, next, last section, table of contents.

12. The menubar and toolbar

12.1. How do I get rid of the menu (or menubar) ?

Answer: To get rid of the menubar, add to `.emacs':

(set-menubar nil)

12.2. Can I customize the basic menubar?

For an extensive menubar, add the line

(load "big-menubar")

to your `.emacs' file. If you'd like to write your own, this file provides a good set of examples to start from:

lisp/packages/big-menubar.el

(starting from your system XEmacs installation directory).

12.3. What controls how many buffers are listed in the menu "Buffers" list?

Add the following to your `.emacs', modified as needed:

(setq buffers-menu-max-size 20)

If you do not want a limit, try

(setq buffers-menu-max-size nil)

12.4. I am trying to use a resource like Emacs*menubar*font to set the font of the menubar but it's not working.

If you are using the real Motif menubar, this resource is not recognized; you have to say

Emacs*menubar*fontList: FONT

If you are using the Lucid menubar, the former resource will be recognized only if the latter resource is unset. This means that the resource

*fontList: FONT

will override

Emacs*menubar*font: FONT

even though the latter is more specific.

12.5. How can I bind a key to a function which will turn the toolbar on and off?

Bind keys to do this, in order to turn it off:

(set-specifier top-toolbar-height (cons (selected-frame) 0))

and to turn it back on:

(remove-specifier top-toolbar-height (selected-frame))

Go to the first, previous, next, last section, table of contents.