branch: elpa/rust-mode
commit 0617f1cc2bad46964d922ba58635803e350fd6e9
Author: Phil Ruffwind <[email protected]>
Commit: Phil Ruffwind <[email protected]>
Recommend autoload instead of require
Lazy loading with autoload will result in faster startup time for Emacs
users and is generally the recommended approach for major modes.
---
README.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 8c2c1f6..24470c2 100644
--- a/README.md
+++ b/README.md
@@ -12,11 +12,12 @@ To install manually, check out this repository and add this
to your
```lisp
(add-to-list 'load-path "/path/to/rust-mode/")
-(require 'rust-mode)
+(autoload 'rust-mode "rust-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
```
-`rust-mode` will automatically be associated with `.rs` files. To enable it
-explicitly, do <kbd>M-x rust-mode</kbd>.
+This associates `rust-mode` with `.rs` files. To enable it explicitly, do
+<kbd>M-x rust-mode</kbd>.
### `package.el` installation via Marmalade or MELPA