Skip to content

Commit 1c3d964

Browse files
stribbbradfitz
authored andcommitted
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: dominikh/go-mode.el#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: 7d43dab GitHub-Pull-Request: #57 Reviewed-on: https://go-review.googlesource.com/c/151680 Reviewed-by: Dominik Honnef <[email protected]>
1 parent e015b91 commit 1c3d964

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmd/goimports/doc.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ For emacs, make sure you have the latest go-mode.el:
1313
https://github.com/dominikh/go-mode.el
1414
Then in your .emacs file:
1515
(setq gofmt-command "goimports")
16-
(add-to-list 'load-path "/home/you/somewhere/emacs/")
17-
(require 'go-mode-autoloads)
1816
(add-hook 'before-save-hook 'gofmt-before-save)
1917
2018
For vim, set "gofmt_command" to "goimports":

0 commit comments

Comments
 (0)