forked from colonelpanic/dotfiles
goimport as gofmt command
This commit is contained in:
parent
159421eee8
commit
1bc888574a
@ -2177,7 +2177,8 @@ window is active in the perspective."
|
|||||||
(imenu-default-create-index-function))))
|
(imenu-default-create-index-function))))
|
||||||
(set (make-local-variable 'company-backends) '(company-go)))
|
(set (make-local-variable 'company-backends) '(company-go)))
|
||||||
(add-hook 'go-mode-hook 'imalison:go-mode-hook)
|
(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
|
(use-package rust-mode
|
||||||
:mode (("\\.rs\\'" . rust-mode)))
|
:mode (("\\.rs\\'" . rust-mode)))
|
||||||
|
Loading…
Reference in New Issue
Block a user