mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-22 16:21:04 -05:00
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:
@@ -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))
|
||||
|
||||
|
Reference in New Issue
Block a user