Skip to content

Commit d45e389

Browse files
mpenetbrson
authored andcommitted
---
yaml --- r: 29807 b: refs/heads/incoming c: 50faaf4 h: refs/heads/master i: 29805: 7439d5f 29803: bce1936 29799: d7a854b 29791: ab7b60c v: v3
1 parent 2fe96c9 commit d45e389

File tree

2 files changed

+51
-2
lines changed

2 files changed

+51
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 30e243a5aa876153081d5451e14286b00ad2c8b1
9+
refs/heads/incoming: 50faaf421f68130bd8db310d66d0b3fa03f75171
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/etc/emacs/README.md

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ rust-mode: A major emacs mode for editing Rust source code
44
`rust-mode` makes editing [Rust](http://rust-lang.org) code with emacs
55
enjoyable.
66

7-
To install, check out this repository and add this to your .emacs
7+
8+
### Manual Installation
9+
10+
To install manually, check out this repository and add this to your .emacs
811
file:
912

1013
(add-to-list 'load-path "/path/to/rust-mode/")
@@ -25,3 +28,49 @@ it, and pressing `C-j`:
2528

2629
Rust mode will automatically be associated with .rs and .rc files. To
2730
enable it explicitly, do `M-x rust-mode`.
31+
32+
### package.el installation via Marmalade or Melpa
33+
34+
It can be more convenient to use Emacs's package manager to handle
35+
installation for you if you use many elisp libraries.
36+
37+
```lisp
38+
(require 'package)
39+
(add-to-list 'package-archives
40+
'("marmalade" . "http://marmalade-repo.org/packages/"))
41+
(package-initialize)
42+
```
43+
44+
```lisp
45+
(require 'package)
46+
(add-to-list 'package-archives
47+
'("melpa" . "http://melpa.milkbox.net/packages/") t)
48+
(package-initialize)
49+
```
50+
51+
If you use a version of Emacs prior to 24 that doesn't include
52+
package.el, you can get it from http://bit.ly/pkg-el23.
53+
54+
If you have an older ELPA package.el installed from tromey.com, you
55+
should upgrade in order to support installation from multiple sources.
56+
The ELPA archive is deprecated and no longer accepting new packages,
57+
so the version there (1.7.1) is very outdated.
58+
59+
60+
#### Important
61+
62+
In order to have cm-mode properly initialized after compilation prior
63+
to rust-mode.el compilation you will need to add these `advices` to
64+
your init file or if you are a melpa user install the `melpa` package.
65+
66+
```lisp
67+
(defadvice package-download-tar
68+
(after package-download-tar-initialize activate compile)
69+
"initialize the package after compilation"
70+
(package-initialize))
71+
72+
(defadvice package-download-single
73+
(after package-download-single-initialize activate compile)
74+
"initialize the package after compilation"
75+
(package-initialize))
76+
```

0 commit comments

Comments
 (0)