hotfix: indentation for Go

This commit is contained in:
Muhammad Nauman Raza 2023-07-22 21:32:51 +01:00
parent 2dfe651e9f
commit 0a75acf4af
No known key found for this signature in database
GPG key ID: 4FFEEB78B8A620C7

View file

@ -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