summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-04-28 19:52:32 +0200
committerAlan Pearce2024-04-28 19:52:32 +0200
commitabddacaec51754d8d5b368510a25640d1d31cf31 (patch)
tree81368374399c7f1d65b20423752d9b0738f8b8ec /user
parent69e4038f3cdb4275ea9e5cd23582ee60e8d0737f (diff)
downloadnixfiles-abddacaec51754d8d5b368510a25640d1d31cf31.tar.lz
nixfiles-abddacaec51754d8d5b368510a25640d1d31cf31.tar.zst
nixfiles-abddacaec51754d8d5b368510a25640d1d31cf31.zip
emacs: fix indentation in go-mode files
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
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"))