These directions were tested on GNU Emacs 20.5.1 and Red Hat Linux 6.2.
Last revised January 9, 2000. Use your browser's Reload or Refresh button to get the latest version.
Emacs uses the control key and escape key heavily. We write it like this:
C-x |
Pronounced "Control-x" Hold down the Ctrl key (usually in the lower left corner of the keyboard) while pressing the x key. Both Ctrl and x must be down at the same time. |
M-x |
Pronounced "Meta-x" Press the Esc key (usually in the upper left corner of the keyboard), release it, then press the x key. Esc and x should not be down at the same time. |
So C-x C-f means hold down the control key, then type x and then f while holding it down. (This is the command to load a file into emacs).
To start Emacs, type one of these commands in a terminal window at the Unix prompt:
Just type. All the regular keys, arrow keys, delete, backspace, and page up/down keys should work. Alternatively, you can try these commands: C-f cursor forward, C-b cursor back, C-p previous line, C-n next line, M-v page up, C-v page down.
Type C-x C-c. If you have any unsaved work, emacs will ask you if you want to save it. Type y.
Most control or escape sequences are commands. Usually a prompt appears in the command line at the bottom of the window. Here are a few:
C-x C-f | Load file, prompt for filename |
C-x C-s | Save file without exiting |
C-x C-c | Exit, prompt to save files |
C-s | Search forward, prompt for search string |
C-r | Search backward, prompt for search string |
C-h ? | Show help options, prompt for choice |
C-h t | Start emacs tutorial |
If you make a mistake or change your mind you can always escape:
C-g | Abandon command and resume typing |