From 9ebd9cb734fa9d610bfd7112ce17764d64e6e5f9 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Thu, 22 Aug 2024 08:57:28 +0200 Subject: [PATCH] fix(go): remove bind to deprecated function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘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@166dfb1e0902 --- modules/lang/go/config.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/lang/go/config.el b/modules/lang/go/config.el index 9dad82d31..861fdafd5 100644 --- a/modules/lang/go/config.el +++ b/modules/lang/go/config.el @@ -25,8 +25,7 @@ (:prefix ("h" . "help") "." #'godoc-at-point) ; Lookup in godoc (:prefix ("ri" . "imports") - "a" #'go-import-add - "r" #'go-remove-unused-imports) + "a" #'go-import-add) (:prefix ("b" . "build") :desc "go run ." "r" (cmd! (compile "go run .")) :desc "go build" "b" (cmd! (compile "go build"))