|
13 | 13 | (add-to-list 'load-path "/path/to/rust-mode/")
|
14 | 14 | (require 'rust-mode)
|
15 | 15 |
|
16 |
| -Make sure you byte-compile the .el files first, or the mode will be |
17 |
| -painfully slow. There is an included `Makefile` which will do it for |
18 |
| -you, so in the simplest case you can just run `make` and everything |
19 |
| -should Just Work. |
20 |
| - |
21 |
| -If for some reason that doesn't work, you can byte compile manually, |
22 |
| -by pasting this in your `*scratch*` buffer, moving the cursor below |
23 |
| -it, and pressing `C-j`: |
24 |
| - |
25 |
| - (progn |
26 |
| - (byte-compile-file "/path/to/rust-mode/cm-mode.el" t) |
27 |
| - (byte-compile-file "/path/to/rust-mode/rust-mode.el" t)) |
28 |
| - |
29 |
| -Rust mode will automatically be associated with .rs and .rc files. To |
30 |
| -enable it explicitly, do `M-x rust-mode`. |
| 16 | +Rust mode will automatically be associated with .rs files. To enable it |
| 17 | +explicitly, do `M-x rust-mode`. |
31 | 18 |
|
32 | 19 | ### package.el installation via Marmalade or MELPA
|
33 | 20 |
|
@@ -67,24 +54,6 @@ should upgrade in order to support installation from multiple sources.
|
67 | 54 | The ELPA archive is deprecated and no longer accepting new packages,
|
68 | 55 | so the version there (1.7.1) is very outdated.
|
69 | 56 |
|
70 |
| -#### Important |
71 |
| - |
72 |
| -In order to have cm-mode properly initialized after compilation prior |
73 |
| -to rust-mode.el compilation you will need to add these `advices` to |
74 |
| -your init file or if you are a melpa user install the `melpa` package. |
75 |
| - |
76 |
| -```lisp |
77 |
| -(defadvice package-download-tar |
78 |
| - (after package-download-tar-initialize activate compile) |
79 |
| - "initialize the package after compilation" |
80 |
| - (package-initialize)) |
81 |
| -
|
82 |
| -(defadvice package-download-single |
83 |
| - (after package-download-single-initialize activate compile) |
84 |
| - "initialize the package after compilation" |
85 |
| - (package-initialize)) |
86 |
| -``` |
87 |
| - |
88 | 57 | #### Install rust-mode
|
89 | 58 |
|
90 | 59 | From there you can install rust-mode or any other modes by choosing
|
|
0 commit comments