mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
go: run go fmt before save
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
(def-company-backend! go-mode (go yasnippet))
|
||||
(def-repl! go-mode gorepl-run)
|
||||
(add-hook! go-mode '(emr-initialize flycheck-mode go-eldoc-setup))
|
||||
(add-hook! go-mode (add-hook 'before-save-hook 'gofmt-before-save))
|
||||
|
||||
:config
|
||||
(map! :map go-mode-map
|
||||
|
Reference in New Issue
Block a user