Setup Emacs as an IDE for Go
This commit is contained in:
parent
83eb4f8606
commit
d83ce3ab34
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue