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:
parent
2382e3994d
commit
15b145e4e3
|
@ -14,7 +14,7 @@ For emacs, make sure you have the latest go-mode.el:
|
||||||
Then in your .emacs file:
|
Then in your .emacs file:
|
||||||
(setq gofmt-command "goimports")
|
(setq gofmt-command "goimports")
|
||||||
(add-to-list 'load-path "/home/you/somewhere/emacs/")
|
(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)
|
(add-hook 'before-save-hook 'gofmt-before-save)
|
||||||
|
|
||||||
For vim, set "gofmt_command" to "goimports":
|
For vim, set "gofmt_command" to "goimports":
|
||||||
|
|
Loading…
Reference in New Issue