hotfix: indentation for Go
This commit is contained in:
parent
2dfe651e9f
commit
0a75acf4af
|
@ -39,6 +39,13 @@
|
||||||
:config
|
:config
|
||||||
(add-hook 'before-save-hook 'gofmt-before-save)) ; Format on save
|
(add-hook 'before-save-hook 'gofmt-before-save)) ; Format on save
|
||||||
|
|
||||||
|
;; 4-space wide Go indentation
|
||||||
|
(add-hook 'go-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(add-hook 'before-save-hook 'gofmt-before-save)
|
||||||
|
(setq tab-width 4)
|
||||||
|
(setq indent-tabs-mode 1)))
|
||||||
|
|
||||||
;; Rust
|
;; Rust
|
||||||
(use-package rust-mode
|
(use-package rust-mode
|
||||||
:config
|
:config
|
||||||
|
|
Reference in a new issue