Previous Next Chapter

Window Menu

The Window menu controls how to view your buffers on the screen.

One-window

Ctrl+X,1

Makes the current buffer a single, full-sized window on the MEmacs screen.

Split-window

Ctrl+X,2

Splits the current window in half, positioning the current buffer identically in both windows. Any changes you make in either window affect the whole buffer.

Next-window

Ctrl+X,N

Moves the cursor to the next window and makes that window available for editing.

Prev-window

Ctrl+X,P

Moves the cursor to the previous window and makes that window available for editing.

Expand-window

Ctrl+X,Z

Adds a line to the height of the current window and simultaneously subtracts a line from the height of the adjacent window.

Shrink-window

Ctrl+X, Ctrl+Z

Substracts a line from the height of the current window and adds a line to the height of the adjacent window.

Next-w-page

Esc, Ctrl+V

Displays the next page of the adjacent window. This does not make the window available for editing.

Prev-w-page

Ctrl+X,V

Displays the previous page of the adjacent window. If only one window is displayed, it displays the previous page of that window.

Move Menu

These commands move the cursor rapidly through the current buffer.

Top-of-buffer

Esc,<

Moves the cursor to the top line of the current buffer.

End-of-buffer

Esc,>

Moves the cursor to the bottom line of the current buffer.

Top-of-window

Esc,,

Moves the cursor to the top of the current window.

End-of-window

Esc,.

Moves the cursor to the bottom of the current window.

Goto-line

Ctrl+X, Ctrl+G

Moves the cursor to a specified line number. Specifying a line number larger than the total number of lines in a buffer moves the cursor to the last line of the buffer.

Swap-dot&mark

Ctrl+X, Ctrl+X

Marks the current cursor position (dot) and moves the cursor to the previously marked setting.

Next-page

Ctrl+V

Moves the cursor toward the end of the buffer by one full window, less one line.

Prev-page

Esc,V

Moves the cursor towards the beginning of the buffer by one full window, less one line.

Next-word

Esc,F

Moves the cursor forward to the next non-alphabetic character, such as a space or punctuation mark, following the current word.

Previous-word

Esc,B

Moves the cursor back to the first letter of the previous word.

Scroll-up

Ctrl+Z

Moves the text up one line.

Scroll-down

Esc,Z

Moves the text down one line.

Line Menu

These commands move the cursor within or between lines and perform operations involving entire lines.

Open-line

Ctrl+O

Splits the line containing the cursor, forcing the character at the current cursor position to become the first character of the following line. The cursor remains on the original line. Pressing the Del key cancels an accidental Open-line.

Kill-line

Ctrl+X, Ctrl+D

Deletes the line containing the cursor and places the text in the kill buffer.

Kill-to-eol

Ctrl+K

Deletes the text between the current cursor position and the end of the line and places the text in the kill buffer.

Start-of-line

Ctrl+A

Moves the cursor to the first position on a line.

End-of-line

Ctrl+E

Moves the cursor to the last position on a line.

Next-line

Ctrl+N

Moves the cursor down one line.

Previous-line

Ctrl+P

Moves the cursor up one line.

Line-to-tp

Esc,!

Moves the line containing the cursor to the top of the window.

Delete-blanks

Ctrl+X, Ctrl+O

Deletes blank lines, proceeding forward from the current cursor position until MEmacs reaches the next line on which there is text. Does not delete single blank lines.

Show-Line#

Ctrl+X,=

Displays information on the present cursor position.

Top Previous Next Chapter