Skip to content

Commit

Permalink
Recommend autoload instead of require
Browse files Browse the repository at this point in the history
Lazy loading with autoload will result in faster startup time for Emacs
users and is generally the recommended approach for major modes.
  • Loading branch information
Rufflewind committed May 3, 2014
1 parent 0c691df commit 7e53af3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/etc/emacs/README.md
Expand Up @@ -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

Expand Down

5 comments on commit 7e53af3

@bors
Copy link
Contributor

@bors bors commented on 7e53af3 May 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from thestinger
at Rufflewind@7e53af3

@bors
Copy link
Contributor

@bors bors commented on 7e53af3 May 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging Rufflewind/rust/patch-2 = 7e53af3 into auto

@bors
Copy link
Contributor

@bors bors commented on 7e53af3 May 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rufflewind/rust/patch-2 = 7e53af3 merged ok, testing candidate = 002f791

@bors
Copy link
Contributor

@bors bors commented on 7e53af3 May 5, 2014

@bors
Copy link
Contributor

@bors bors commented on 7e53af3 May 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 002f791

Please sign in to comment.