From ec7f20589a8ed6378ff3fc73cabad397cebe6043 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 2 Feb 2018 03:00:57 -0500 Subject: [PATCH] lang/go: don't popup gofmt errors (use flycheck instead) --- modules/lang/go/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))