Commit c4b2844fb913

Vincent Demeester <vincent@sbr.pm>
2018-11-27 21:44:18
vde-go: enable flycheck on go source files
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent e3bd9fd
Changed files (1)
lisp/vde-go.el
@@ -25,6 +25,7 @@
   (if (not (executable-find "goimports"))
       (warn "go-mode: couldn't find goimports; no code formatting/fixed imports on save")
     (add-hook 'before-save-hook 'gofmt-before-save))
+  (add-hook 'go-mode-hook 'flycheck-mode)
   (if (not (string-match "go" compile-command))   ; set compile command default
       (set (make-local-variable 'compile-command)
            "go build -v && go test -v && go vet")))