goimport as gofmt command

This commit is contained in:
Ivan Malison 2015-10-25 15:59:10 -07:00
parent 159421eee8
commit 1bc888574a

View File

@ -2177,7 +2177,8 @@ window is active in the perspective."
(imenu-default-create-index-function))))
(set (make-local-variable 'company-backends) '(company-go)))
(add-hook 'go-mode-hook 'imalison:go-mode-hook)
(add-hook 'before-save-hook 'gofmt-before-save)))
(setq gofmt-command "goimports")
(add-hook 'before-save-hook 'gofmt-before-save t)))
(use-package rust-mode
:mode (("\\.rs\\'" . rust-mode)))