fix(go): remove bind to deprecated function

‘go-remove-unused-imports’ is an obsolete command (as of 1.7.0); set
‘gofmt-command’ to goimports instead, or use LSP and gopls’s "Organize
Imports" code action.

Ref: dominikh/go-mode.el@166dfb1e09
This commit is contained in:
pancho horrillo 2024-08-22 08:57:28 +02:00 committed by Henrik Lissner
parent 0d363045c5
commit 9ebd9cb734

View file

@ -25,8 +25,7 @@
(:prefix ("h" . "help") (:prefix ("h" . "help")
"." #'godoc-at-point) ; Lookup in godoc "." #'godoc-at-point) ; Lookup in godoc
(:prefix ("ri" . "imports") (:prefix ("ri" . "imports")
"a" #'go-import-add "a" #'go-import-add)
"r" #'go-remove-unused-imports)
(:prefix ("b" . "build") (:prefix ("b" . "build")
:desc "go run ." "r" (cmd! (compile "go run .")) :desc "go run ." "r" (cmd! (compile "go run ."))
:desc "go build" "b" (cmd! (compile "go build")) :desc "go build" "b" (cmd! (compile "go build"))