Linux in a NutshellLinux in a NutshellSearch this book

10.3. Notes on the Tables

Emacs commands use the Ctrl key and the Meta key. Most modern terminals provide a key named Alt that functions as a Meta key. In this section, the notation C- indicates that you should hold down the Ctrl key and press the character that follows, while M- indicates the same for the Meta or Alt key. As an alternative to Meta or Alt, you can press the Esc key, release it, and press the character. You might want to do this if you have problems with controlling windows capturing the Alt key (which sometimes happens).

In the command tables that follow, the first column lists the keystroke and the last column describes it. When there is a middle column, it lists the command name. The command can be executed by typing M-x followed by the command name; you have to do this when the binding is listed as "(none)". If you're unsure of the full command name, you can type a space, tab, or carriage return, and Emacs will list possible completions of what you've typed so far.

Because Emacs is such a comprehensive editor, containing hundreds of commands, some commands must be omitted for the sake of preserving a "quick" reference. You can browse the full command set by typing C-h (for help) and then b to get a list of the key bindings,[9] or M-x followed by a space or tab to get the command names.

[9]If you want to learn to create your own key bindings, see Learning GNU Emacs (O'Reilly).

10.3.1. Absolutely Essential Commands

If you're just getting started with Emacs, here's a short list of the most important commands to know:

Binding

Action

C-h

Enter the online help system.

C-x C-s

Save the file.

C-x C-c

Exit Emacs.

C-x u

Undo last edit (can be repeated).

C-g

Get out of current command operation.

C-p

Up by one line.

C-n

Down by one line.

C-f

Forward by one character.

C-b

Back by one character.

C-v

Forward by one screen.

M-v

Backward by one screen.

C-s

Search forward for characters.

C-r

Search backward for characters.

C-d

Delete current character.

Del

Delete previous character.

Backspace

Delete previous character.



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.