branch: elpa/go-mode
commit b234d71e1adf6fe662435ad869b76a854a2f21f0
Author: Kristoffer Grönlund <[email protected]>
Commit: Dominik Honnef <[email protected]>
Remove outdated autoloads instructions from README.md
Since the `go-mode-autoloads.el` was removed, the
instructions for manual installation no longer work.
Closes gh-226
Closes gh-251 [via git-merge-pr]
---
README.md | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index aba11f0..ac33d82 100644
--- a/README.md
+++ b/README.md
@@ -83,20 +83,17 @@ If you're not familiar with ELPA yet, consider reading
## Manual
-To install go-mode manually, place `go-mode.el` and
-`go-mode-autoloads.el` in a directory of your choice, add it to your
-load path and require `'go-mode-autoloads`:
- (add-to-list 'load-path "/place/where/you/put/it/")
- (require 'go-mode-autoloads)
-Either evaluate both statements with `C-x C-e`, or restart Emacs.
+To install go-mode manually, check out the `go-mode.el` repository in
+a directory of your choice, add it to your load path and configure
+Emacs to automatically load it when opening a `.go` file:
+
+ (add-to-list 'load-path "/place/where/you/put/it/")
+ (autoload 'go-mode "go-mode" nil t)
+ (add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))
-As a side note, normally the autoloads file shouldn't be part of the
-package, as it's supposed to be automatically generated by ELPA, or
-manually by the user with `update-file-autoloads`. go-mode includes
-said file because it used to when it was part of the Go distribution
-and this makes upgrading easier for some people.
+Either evaluate the statements with `C-x C-e`, or restart Emacs.
# Other extensions