Sams Teach Yourself Emacs in 24 Hours |  | ContentsIndex
Hour 3: Getting Started with Emacs |  | Previous HourNext Hour
Sections in this Hour: |  |

## Q&A

  Q I don't need the menus; is there any way I can get rid of them?

  A Are you sure you do not need them?! Okay, if you really want to get rid of them, the procedures are different in GNU Emacs and XEmacs.

  In GNU Emacs, try M-x menu-bar-mode. (The same command enables them once again.) If you want to remove them at startup, insert the following line into your .emacs file:

>     (menu-bar-mode nil)

  If you want to get rid of them only when you are using Emacs on a non-X terminal, insert the following into your .emacs file:

>     (if (equal window-system nil)
>         (menu-bar-mode nil))

  You might be interested in doing that to save screen space on a terminal with a very limited number of lines.

  For XEmacs, insert the following line into your .emacs file:

>     (set-specifier menubar-visible-p nil)

  Q Is it possible to get rid of the toolbar in XEmacs?

  A Yes. Insert the following line into your .emacs file:

>     (set-specifier default-toolbar-visible-p nil)

  Q It often says "Find file:" in the minibuffer. Why?

  A The reason for this is that you have pressed C-x C-f (find-file) to open a file, but before you finished that job, you pressed the mouse button in a buffer. This enables you to edit the content of the buffer (while still waiting for you to tell it the name of the file to open). To make it go away, press the mouse button in the minibuffer and press C-g.

Sams Teach Yourself Emacs in 24 Hours |  | ContentsIndex
Hour 3: Getting Started with Emacs |  | Previous HourNext Hour
Sections in this Hour: |  |

© Copyright Macmillan USA. All rights reserved.