Small fixes for go-mode:
- Fixed typo for gocode command in `doctor.el` - Only enable flycheck mode if the syntax-checker feature is enabled
This commit is contained in:
parent
2d6bef33d3
commit
e51e483c86
2 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,10 @@
|
|||
(setq gofmt-command goimports))
|
||||
|
||||
(setq gofmt-show-errors nil) ; Leave it to flycheck
|
||||
(if (featurep! :feature syntax-checker)
|
||||
(add-hook! 'go-mode-hook #'flycheck-mode))
|
||||
|
||||
(add-hook! 'go-mode-hook #'(flycheck-mode go-eldoc-setup))
|
||||
(add-hook! 'go-mode-hook #'go-eldoc-setup)
|
||||
(add-hook! go-mode
|
||||
(add-hook 'before-save-hook #'gofmt-before-save nil t))
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
|
||||
(when (featurep! :completion company)
|
||||
(require 'company-go)
|
||||
(unless (executable-find command-go-gocode-command)
|
||||
(unless (executable-find company-go-gocode-command)
|
||||
(warn! "Couldn't find gocode. Code completion won't work")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue