diff --git a/cmd/goimports/doc.go b/cmd/goimports/doc.go index ca46d02b..316d4867 100644 --- a/cmd/goimports/doc.go +++ b/cmd/goimports/doc.go @@ -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":