mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 20:40:58 +01:00
update emacs config to 21th century
This commit is contained in:
13
conf-lisp/go.el
Normal file
13
conf-lisp/go.el
Normal file
@@ -0,0 +1,13 @@
|
||||
;; *** Go Lang
|
||||
|
||||
(use-package go-mode
|
||||
:mode "\\.go\\'"
|
||||
:mode "\\.mod\\'"
|
||||
|
||||
:config
|
||||
(setq gofmt-args '("-s"))
|
||||
(setq tab-width 4)
|
||||
(setq indent-tabs-mode 1)
|
||||
|
||||
:init
|
||||
(add-hook 'before-save-hook 'gofmt-before-save))
|
||||
Reference in New Issue
Block a user