lang/go: don't popup gofmt errors (use flycheck instead)
This commit is contained in:
parent
5cb75da7e0
commit
ec7f20589a
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@
|
||||||
:config
|
:config
|
||||||
(add-hook 'go-mode-hook #'flycheck-mode)
|
(add-hook 'go-mode-hook #'flycheck-mode)
|
||||||
|
|
||||||
(setq gofmt-command "goimports")
|
(setq gofmt-command "goimports"
|
||||||
|
gofmt-show-errors nil)
|
||||||
(if (not (executable-find "goimports"))
|
(if (not (executable-find "goimports"))
|
||||||
(warn "go-mode: couldn't find goimports; no code formatting/fixed imports on save")
|
(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)))
|
(add-hook! go-mode (add-hook 'before-save-hook #'gofmt-before-save nil t)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue