summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--init.org15
1 files changed, 8 insertions, 7 deletions
diff --git a/init.org b/init.org
index 958909d..24662b8 100644
--- a/init.org
+++ b/init.org
@@ -1137,13 +1137,14 @@ For languages where I want to use LSP, I need to add ~:hook (nix-mode . englot-e
 *** go-mode
 
 #+begin_src emacs-lisp
-  (use-package go-mode
-    :ensure t
-    :hook ((go-mode . tree-sitter-hl-mode)
-           (go-mode . eglot-ensure)
-           (go-mode . (lambda () (add-hook 'before-save-hook 'eglot-format-buffer nil t))))
-    :bind (:map go-mode-map
-                ("C-c C-c" . compile)))
+(use-package go-mode
+  :ensure t
+  :hook ((go-mode . tree-sitter-hl-mode)
+         (go-mode . eglot-ensure)
+         (go-mode . (lambda () (setq tab-width 4)))
+         (go-mode . (lambda () (add-hook 'before-save-hook 'eglot-format-buffer nil t))))
+  :bind (:map go-mode-map
+              ("C-c C-c" . compile)))
 #+end_src
 
 **** gotest