From 1c3d964395ce8f04f3b03b30aaed0b096c08c3c6 Mon Sep 17 00:00:00 2001 From: Andrew Stribblehill Date: Thu, 29 Nov 2018 18:01:04 +0000 Subject: [PATCH] cmd/goimports: update Emacs install instructions When I tried to use the Emacs instructions, I found there was no go-mode-autoloads available. Searching, I found: https://github.com/dominikh/go-mode.el/issues/222 Removing the (require) line solved my problem. I don't know what the add-to-list invocation was supposed to do, so I propose removing it too. Change-Id: I027654dd2c634f0747dcefee71f413866049a608 GitHub-Last-Rev: 7d43dabf6a46210eaaa849900c13cd52001878cb GitHub-Pull-Request: golang/tools#57 Reviewed-on: https://go-review.googlesource.com/c/151680 Reviewed-by: Dominik Honnef --- cmd/goimports/doc.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/goimports/doc.go b/cmd/goimports/doc.go index f5ca3a0a..7033e4d4 100644 --- a/cmd/goimports/doc.go +++ b/cmd/goimports/doc.go @@ -13,8 +13,6 @@ For emacs, make sure you have the latest go-mode.el: https://github.com/dominikh/go-mode.el Then in your .emacs file: (setq gofmt-command "goimports") - (add-to-list 'load-path "/home/you/somewhere/emacs/") - (require 'go-mode-autoloads) (add-hook 'before-save-hook 'gofmt-before-save) For vim, set "gofmt_command" to "goimports":