diff options
author | Vincent Ambo <tazjin@tvl.su> | 2024-07-22T14·32+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-07-22T14·39+0000 |
commit | 849e639c7169a5ceb28314e603c9bd5731306b0d (patch) | |
tree | 69d9447b20f3d920db3f0f74871273cfd87ba49f | |
parent | 14a4b4cbc38f64c85475a759efc1a3c90003fb3d (diff) |
fix(tazjin/emacs): fix Go indentation offset in tree-sitter mode r/8401
Change-Id: Id72ddc6345ee3eb70b7a1d594fe6bcd60d8d0868 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12020 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
-rw-r--r-- | users/tazjin/emacs/config/init.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el index ced3bf2ff83b..2af68a9f746e 100644 --- a/users/tazjin/emacs/config/init.el +++ b/users/tazjin/emacs/config/init.el @@ -126,12 +126,9 @@ (use-package f) -(use-package go-mode - :bind (:map go-mode-map ("C-c C-r" . recompile)) - :hook ((go-mode . (lambda () - (setq tab-width 2) - (setq-local compile-command - (concat "go build " buffer-file-name)))))) +(use-package go-ts-mode + :custom + (go-ts-mode-indent-offset 4)) (use-package haskell-mode) |