Commit 2159991f authored by treyzania's avatar treyzania

Tweaks to Go's Emacs configs. Idk if this will work but we'll see.

parent 1a3164b0
......@@ -51,20 +51,22 @@
(use-package flycheck-rust
:hook ((flycheck-mode . flycheck-rust-setup)))
(use-package go-mode)
(use-package go-mode
:hook ((before-save . gofmt-before-save)))
(use-package company-go
:hook ((go-mode . (lambda ()
(set (make-local-variable 'company-backends) '(company-go))
(company-mode))))
:config
(setq company-begin-commands '(self-insert-command))) ; autocomplete only after typing
;(use-package company-go
; :hook ((go-mode . (lambda ()
; (set (make-local-variable 'company-backends) '(company-go))
; (company-mode))))
; :config
; (setq company-begin-commands '(self-insert-command))) ; autocomplete only after typing
; idk what this is
;(add-hook 'go-mode-hook )
(use-package go-autocomplete
:config
(add-hook 'completion-at-point-functions 'go-complete-at-point))
; I don't think I need this.
(use-package rust-playground)
;(use-package rust-playground)
; which key just runs everywhere
(use-package which-key)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment