Skip to content

Commit 7d43dab

Browse files
authored
Update the 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.
1 parent c5b00d9 commit 7d43dab

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)