So how do you install a major mode for emacs? First, you need to find out what your emacs load path is.
C-h v load-path
Then put the following in your ".emacs" file. This file exists in your home directory, and if it doesn't exist, create it.