Next: , Previous: , Up: Edit   [Contents][Index]


3.2 Moving Around

The following commands will allow you to move the cursor around the screen. The actual function names corresponding to these commands are given in parenthesis. You can also invoke these commands by typing M-x <function name>. You can do this for any command in SXEmacs.

C-b

Move the cursor backward one character (backward-char).

C-f

Move the cursor forward one character (forward-char).

C-p

Move the cursor up one line vertically (previous-line).

C-n

Move the cursor down one line vertically (next-line).

C-a

Move the cursor to the beginning of the line (beginning-of-line).

C-e

Move the cursor to the end of the line (end-of-line).

M-f

Move the cursor forward one word (forward-word).

M-b

Move the cursor backward one word (backward-word).

M-<

Move the cursor to the top of the buffer (beginning-of-buffer).

M->

Move the cursor to the end of the buffer (end-of-buffer).

M-x goto-char RET <number> RET

To enable this command type M-x goto-char, and hit RETURN key. In the echo area you will see:

Goto char:

You should then type in a number right after the colon and hit the RETURN key again. After reading a number n this command will move the cursor to character number n. Position 1 is the beginning of the buffer. For example, if you type M-x goto-char RET 200 RET, then the cursor will move to the 200th character starting from the beginning of the buffer.

M-x goto-line RET <number> RET

To enable this command type M-x goto-line, and hit the RETURN key. After you see Goto line: in the echo area, type in a number n and hit RETURN key again. This command will position the cursor on the nth line starting from the beginning of the buffer.

M-x what-line RET

This command will display the current line number in the echo area.


Next: , Previous: , Up: Edit   [Contents][Index]