To edit a file using emacs type:
emacs filename
If you are creating a new file, filename is what you want to call the file. If you are editing an existing file, type the current filename. The file appears in your shell window.
Once the file opens you can move around using the arrow keys. To page down use control-v, and to page up use esc-v (or meta-v if you have a meta key). Remember, to use the escape key, you simply have to push it and release before hitting some other key, whereas the control key is similar to the shift key - you press and hold while you press another key.
Some emacs commands:
Save-As (aka write file) : control-x control-w
To enable syntax coloring: you can add the following to your emacs config file (a file called .emacs in your home directory):
; Turn on font-lock in supported modes (if (fboundp 'global-font-lock-mode) (global-font-lock-mode t)) ; Maximum colors (setq font-lock-maximum-decoration t)