@@ -29,20 +29,31 @@ it, and pressing `C-j`:
29
29
Rust mode will automatically be associated with .rs and .rc files. To
30
30
enable it explicitly, do ` M-x rust-mode ` .
31
31
32
- ### package.el installation via Marmalade
32
+ ### package.el installation via Marmalade or MELPA
33
33
34
34
It can be more convenient to use Emacs's package manager to handle
35
35
installation for you if you use many elisp libraries. If you have
36
- package.el but haven't added Marmalade, the community package source,
36
+ package.el but haven't added Marmalade or MELPA , the community package source,
37
37
yet, add this to ~ /.emacs.d/init.el:
38
38
39
+ Using Marmalade:
40
+
39
41
``` lisp
40
42
(require 'package)
41
43
(add-to-list 'package-archives
42
44
'("marmalade" . "http://marmalade-repo.org/packages/"))
43
45
(package-initialize)
44
46
```
45
47
48
+ Using MELPA:
49
+
50
+ ``` lisp
51
+ (require 'package)
52
+ (add-to-list 'package-archives
53
+ '("melpa" . "http://melpa.milkbox.net/packages/") t)
54
+ (package-initialize)
55
+ ```
56
+
46
57
Then do this to load the package listing:
47
58
48
59
* <kbd >M-x eval-buffer</kbd >
@@ -56,18 +67,6 @@ should upgrade in order to support installation from multiple sources.
56
67
The ELPA archive is deprecated and no longer accepting new packages,
57
68
so the version there (1.7.1) is very outdated.
58
69
59
- From there you can install rust-mode or any other modes by choosing
60
- them from a list:
61
-
62
- * <kbd >M-x package-list-packages</kbd >
63
-
64
- Now, to install packages, move your cursor to them and press i. This
65
- will mark the packages for installation. When you're done with
66
- marking, press x, and ELPA will install the packages for you (under
67
- ~ /.emacs.d/elpa/).
68
-
69
- * or using <kbd >M-x package-install rust-mode
70
-
71
70
#### Important
72
71
73
72
In order to have cm-mode properly initialized after compilation prior
@@ -85,3 +84,17 @@ your init file or if you are a melpa user install the `melpa` package.
85
84
"initialize the package after compilation"
86
85
(package-initialize))
87
86
```
87
+
88
+ #### Install rust-mode
89
+
90
+ From there you can install rust-mode or any other modes by choosing
91
+ them from a list:
92
+
93
+ * <kbd >M-x package-list-packages</kbd >
94
+
95
+ Now, to install packages, move your cursor to them and press i. This
96
+ will mark the packages for installation. When you're done with
97
+ marking, press x, and ELPA will install the packages for you (under
98
+ ~ /.emacs.d/elpa/).
99
+
100
+ * or using <kbd >M-x package-install rust-mode
0 commit comments