diff options
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 1722d392..e7d59f97 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -740,9 +740,10 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve (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 |