Setup Emacs as an IDE for Go

This commit is contained in:
Ohad Livne 2025-06-24 19:09:25 +03:00
parent 83eb4f8606
commit d83ce3ab34
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
2 changed files with 15 additions and 0 deletions

View file

@ -287,6 +287,19 @@
(rustic-lsp-client 'eglot)
)
(use-package go-config
:ensure nil
:hook
(go-ts-mode . eglot-ensure)
:init
(setq auto-mode-alist
(map-merge 'list
'(("\\.go\\'" . go-ts-mode)
("/go\\.mod\\'" . go-mod-ts-mode)
("/go\\.work\\'" . go-work-ts-mode))
auto-mode-alist))
)
(use-package gptel
:custom
; keep-sorted start