diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-16 12:44:24 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-16 12:44:24 +0100 |
| commit | f0e4edc220bda13693292b2c3d322eae572d65aa (patch) | |
| tree | a5f88dee6759db4f57cfb574a2e0d24c7d59e846 /README.md | |
| download | rust-mode-f0e4edc220bda13693292b2c3d322eae572d65aa.tar.gz | |
Move emacs mode into tree
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..7bfeebe --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +rust-mode: A major emacs mode for editing Rust source code +========================================================== + +`rust-mode` makes editing [Rust](http://rust-lang.org) code with emacs +enjoyable. + +To install, check out this repository and add this to your .emacs +file: + + (add-to-list 'load-path "/path/to/rust-mode/") + (require 'rust-mode) + +Make sure you byte-compile the .el files first, or the mode will be +painfully slow. There is an included `Makefile` which will do it for +you, so in the simplest case you can just run `make` and everything +should Just Work. + +If for some reason that doesn't work, you can byte compile manually, +by pasting this in your `*scratch*` buffer, moving the cursor below +it, and pressing `C-j`: + + (progn + (byte-compile-file "/path/to/rust-mode/cm-mode.el" t) + (byte-compile-file "/path/to/rust-mode/rust-mode.el" t)) + +Rust mode will automatically be associated with .rs and .rc files. To +enable it explicitly, do `M-x rust-mode`. |
