Helpful emacs hints
You can use emacs directly from Unix, or run Xemacs, essentially emacs with a GUI wrapper. If you do the latter, you get cute colors and mouse-ability.
Regardless of how you decide to invoke emacs, the following commands apply:
- ctrl-n move to the next line
- ctrl-p move back a line
- ctrl-f move forward a character
- ctrl-b move backward a character
- ctrl-v move forward a screenful
- esc-v move backward a screenful
- esc-< go to beginning of file (buffer)
- esc-> go to end of file (buffer)
- ctrl-k kill line [like "cut" but for a single line]
- ctrl-space set mark (used with ctrl-w which follows)
- ctrl-w kill region (from the mark to the current cursor position) [like "cut"]
- esc-w copy region to kill ring [like "copy"]
- ctrl-y yank [like "paste"]
- ctrl-x ctrl-s save the file
- ctrl-x ctrl-c exit emacs
- ctrl-z pause (and its attendant shell commands: fg, bg, jobs)
- esx-x compile used to invoke the compiler from within emacs
- esc-x goto-line goes to the line number (it will prompt for the number)
- ctrl-x ` go-to-next-error (right handy when in compiler-mode)
- ctrl-x 0 delete current window
- ctrl-x 1 delete all other windows (leave current window as only window)
- ctrl-x 2 split window into two
- ctrl-x o move to other window
- esc-x help help on commands and key bindings