From abddacaec51754d8d5b368510a25640d1d31cf31 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 28 Apr 2024 19:52:32 +0200 Subject: emacs: fix indentation in go-mode files --- user/emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/emacs/init.el b/user/emacs/init.el index 70cd6a8e..75b4b2c0 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -745,7 +745,8 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve :config (global-treesit-auto-mode)) ;;;; golang -(setq go-mode-indent-offset tab-width) +(setq go-mode-indent-offset tab-width + go-ts-mode-indent-offset tab-width) (with-eval-after-load 'project (add-to-list 'project-vc-extra-root-markers "go.mod")) -- cgit 1.4.1