diff --git a/modules/lang/go/config.el b/modules/lang/go/config.el index a04c1b870..e5761f16d 100644 --- a/modules/lang/go/config.el +++ b/modules/lang/go/config.el @@ -6,7 +6,8 @@ :config (add-hook 'go-mode-hook #'flycheck-mode) - (setq gofmt-command "goimports") + (setq gofmt-command "goimports" + gofmt-show-errors nil) (if (not (executable-find "goimports")) (warn "go-mode: couldn't find goimports; no code formatting/fixed imports on save") (add-hook! go-mode (add-hook 'before-save-hook #'gofmt-before-save nil t)))