This commit is contained in:
Marcus Kammer 2022-07-20 13:34:30 +02:00
parent 6500ff88ff
commit 3cd81c0d9e

View file

@ -109,7 +109,7 @@
(add-hook 'before-save-hook #'gofmt-before-save)
(add-hook 'go-mode-hook 'eglot-ensure)
(defun me/go-mode-compile-command-hook ()
;; if no makefile use go build for compile command
;; if no makefile use go vet for compile command
(unless (or (file-exists-p "makefile")
(file-exists-p "Makefile"))
(set (make-local-variable 'compile-command)