summary refs log tree commit diff
path: root/init.org
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-06-07 11:32:30 -0700
committerFranck Cuny <franck@fcuny.net>2023-06-07 11:32:30 -0700
commitc9ab21c31d1c9b3ea1c5f7287702e430f06a1ae2 (patch)
tree10876c80481f96e780302538ea0dc1300956e373 /init.org
parentsend completion candidate when inside eshell (diff)
downloademacs.d-c9ab21c31d1c9b3ea1c5f7287702e430f06a1ae2.tar.gz
set tab-width to 4 for go-mode
Change-Id: I981624ea334a63a7d68aeb5f1316f01a9da101e9
Diffstat (limited to 'init.org')
-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