emacs: improve golang setup
Alan Pearce alan@alanpearce.eu
Thu, 18 Apr 2024 09:16:00 +0200
1 files changed, 4 insertions(+), 3 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -740,9 +740,10 @@ (toml-mode . toml-ts-mode) (yaml-mode . yaml-ts-mode))) ;;;; golang -(use-package go-mode - :defer t) -(add-to-list 'major-mode-remap-alist '(go-mode . go-ts-mode)) +(with-eval-after-load 'go-ts-mode + (setq go-ts-mode-indent-offset tab-width)) +(with-eval-after-load 'project + (add-to-list 'project-vc-extra-root-markers "go.mod")) ;;;; nim (use-package nim-mode