cmd/goimports: update doc.go for go-mode elisp

go-mode does not use go-mode-load now.
Need to use go-mode-autoloads instead.

Change-Id: I3ee2113b41972a1f700d604ea7a6c2d5b59da8bb
Reviewed-on: https://go-review.googlesource.com/42193
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Takuto Ikuta 2017-04-30 19:24:11 +09:00 committed by Alan Donovan
parent 2382e3994d
commit 15b145e4e3
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ For emacs, make sure you have the latest go-mode.el:
Then in your .emacs file:
(setq gofmt-command "goimports")
(add-to-list 'load-path "/home/you/somewhere/emacs/")
(require 'go-mode-load)
(require 'go-mode-autoloads)
(add-hook 'before-save-hook 'gofmt-before-save)
For vim, set "gofmt_command" to "goimports":