Technical Briefs
ROHAN help Files
Emacs
Emacs is generally available on many UNIX systems and is more powerful than vi.
Emacs is a lisp interpreter and is extremely extensible. To learn
about emacs type the comand teachemacs. In emacs there is no distinction
between command mode and insert mode. When you type a normal printable
character, it is inserted. The commands are all control characters. To add
new text, move the cursor to the right place and start typing. To execute a
command, just type it. If you are using X Terminals,
emacs will allow you to use the mouse to move the cursor around, and to cut and
paste text in your document.
Emacs has some command prefix characters that make up two character commands.
The most common ones are the ESCAPE key and ^X. Any character typed after a
prefix character forms a command. The more common commands are put on the
numeric keypad. The cursor movement keys are on the keypad and are:
8 up
4 6 left right
2 down
Here are a few commands to get you started with emacs:
Commands/Description
- ^V
- Move forward a screenful
- ESCAPE v
- Move back a screenful
- ^S
- Search for a specified string; asks for string
- ^D
- Delete a character
- DELETE
- Delete previous character
- ^K
- Kill (delete) the rest of the current line (at the end of the line, join two
lines)
- ^A
- Go to the beginning of the line
- ^E
- Go to the end of the line
- ESCAPE <
- Go to the beginning of the file
- ESCAPE >
- Go to the end of the file
- ^O
- Open up a new line
- ^Y
- Put back the most recently deleted line(s)
- ^X^S
- Write the changes to the file
- ^X^C
- Exit
|
|