Brief XEmacs Command Summary


This reference lists some of the commands you will find useful when working with XEmacs. These commands can also be invoked from the XEmacs menus using a mouse. However, you may not always be able to use a mouse, as for instance, when you are logged in remotely. Also, invoking a command using key combinations is usually faster than invoking the same command using the mouse.

Notation

In this reference manual, the notation C-key means you should hold the Ctrl key down and then press the key key. Thus the key combination C-x s means you should hold the Ctrl key down and press the x key, then release both keys and press the s key. Similarly the key combination C-x C-s means you should hold the Ctrl key down and press the x key, then release both keys and hold the Ctrl key down and press the s key.

The Esc key should not be held down simultaneously with any other key. Also, keyboards that don't have a Meta key often use the Esc key in place of the M-key sequence. So M-% for "Replace..." is entered as two keystrokes, Esc %.

File Related Commands

The commands in this section are file-related. Most of them can also be invoked using a mouse from the "File" menu.
 
File Related Commands
C-x C-s Saves the file in the current buffer.
C-x s Saves all files in buffers that need saving.
C-x C-w Saves the current buffer to a new file. Prompts for the new file name at the XEmacs command line.
C-x C-f Loads the file you name or creates a new file by that name if it does not already exist.
C-x d Runs directory edit, which lists the files in the current directory. (To select a file, move the cursor to that file and type f.)
C-x i Inserts a file at the point where the cursor is. Prompts for the name of the file to be inserted.
C-x C-c Quit XEmacs. Prompts user to save any files that need saving.

Moving Around

The commands in this section allow you to move the cursor around in the buffer.
 
Moving Around
C-f (right arrow) Moves the cursor to the right.
C-b (left arrow) Moves the cursor to the left.
C-n (down arrow) Moves cursor to the next line.
C-p (up arrow) Moves cursor to the previous line.
C-a Moves the cursor to the start of the line.
C-e Moves the cursor to the end of the line.
C-v (Page Down) Scrolls down one screen at a time.
Esc v (Page Up) Scrolls up one screen at a time.
Esc < (Home) Takes the cursor to the top of the file.
Esc > (End) Takes the cursor to the bottom of the file.

Editing Commands

The commands in this section allow you to make changes to the contents of the buffer. These commands can also be invoked from the "Edit" menu using a mouse.
 
Editing Commands
C-d  Deletes the character the cursor is on.
Del  Deletes the previous character.
Esc d  Deletes the next word.
Esc Del  Deletes the previous word.
C-k  Deletes the rest of the line.
Esc k  Kills the rest of the sentence.
C-y  Brings back (yanks) what was just killed.
C-g  Cancels whatever command is currently issued.
Esc @  Sets a mark in the text.
C-w  Wipes out everything from the cursor to where you set the mark and puts that text in a kill ring.
Esc w  Copies everything from the cursor to where you set the mark and puts it in a kill ring.
C-x u  Undo.
C-x C-x  Takes you to the place you set the mark.
Esc # <line number> Takes you to the specified line number.

Windows and Buffers

The commands listed in this section can be found either in the "File" menu.
 
Windows and Buffers
C-x b Switches to another buffer.
C-x 2  Splits the window horizontally.
C-x 3  Splits the window vertically.
C-x o  Allows you to jump back and forth between split windows.
C-x 1  Changes back to a single window. (Each buffer still remains in memory.)



 
Previous Table of Contents Continue 


Last modified: Tue Jan 6 14:58:18 EST 1998