diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2013-07-24 17:11:04 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2013-07-24 17:11:04 -0700 |
| commit | 4c1eab53f216394783843e96f0b47eeea65621ec (patch) | |
| tree | 0a35645fb17085303789a284bd5a762ea1a4b924 /README.md | |
| parent | 1076b9c3b2fd40bf04caeedde5801ae64348530e (diff) | |
| download | rust-mode-4c1eab53f216394783843e96f0b47eeea65621ec.tar.gz | |
rewrite rust-mode to use font-lock-mode and emacs builtin syntax analysis
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 35 |
1 files changed, 2 insertions, 33 deletions
@@ -13,21 +13,8 @@ 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`. +Rust mode will automatically be associated with .rs files. To enable it +explicitly, do `M-x rust-mode`. ### package.el installation via Marmalade or MELPA @@ -67,24 +54,6 @@ should upgrade in order to support installation from multiple sources. The ELPA archive is deprecated and no longer accepting new packages, so the version there (1.7.1) is very outdated. -#### Important - -In order to have cm-mode properly initialized after compilation prior -to rust-mode.el compilation you will need to add these `advices` to -your init file or if you are a melpa user install the `melpa` package. - -```lisp -(defadvice package-download-tar - (after package-download-tar-initialize activate compile) - "initialize the package after compilation" - (package-initialize)) - -(defadvice package-download-single - (after package-download-single-initialize activate compile) - "initialize the package after compilation" - (package-initialize)) -``` - #### Install rust-mode From there you can install rust-mode or any other modes by choosing |
