Clone this wiki locally
Home - Installation
To install js3-mode:
- Download the latest source at https://github.com/thomblake/js3-mode or by cloning the repository at git://github.com/thomblake/js3-mode.git
- Put js3.el in your emacs load path
- Byte-compile the file using emacs. The simplest way is to run
bin/buildfrom the command-line. If you can't run that for whatever reason, do:
M-x byte-compile-file RET js3.el RETor on the command-line:
emacs --batch -f batch-byte-compile js3.elIt is important that you byte-compile the file using your version of emacs - one compiled with a different version of emacs might not work for you.
- If you want, configure the mode using
M-x customize-group RET js3-mode RET
The .emacs file included with the source has an example of setting the mode to start for .js files.
In case you're not sure how to add something to your .emacs include path, here's an example (unix):
cd ~ mkdir emacs mv js3.el emacs
In your .emacs file:
(setq load-path (cons "~/emacs" load-path))