diff options
author | Franck Cuny <fcuny@twitter.com> | 2019-07-26 09:37:00 -0700 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2019-07-26 09:37:00 -0700 |
commit | a1644b85424e383490a6eda084a51b9028b2c2a3 (patch) | |
tree | 944a9d5a8d57fb83a02dd8b272a8f77fdaf3e3f1 /emacs.d/custom/fcuny-company.el | |
parent | [git] some clean up (diff) | |
download | emacs.d-a1644b85424e383490a6eda084a51b9028b2c2a3.tar.gz |
[emacs] improve support for go-mode
improve the support to write go code. adding hydra to don't have to remember all the commands i want to use with `go-guru`, and add `gotest` to run tests directly from emacs. add `company-go` for code completion. will likely add more commands to hydra as i go.
Diffstat (limited to '')
-rw-r--r-- | emacs.d/custom/fcuny-company.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs.d/custom/fcuny-company.el b/emacs.d/custom/fcuny-company.el new file mode 100644 index 0000000..4ffc900 --- /dev/null +++ b/emacs.d/custom/fcuny-company.el @@ -0,0 +1,12 @@ +(use-package company + :ensure t + :diminish company-mode) + +(use-package company-go + :ensure t + :after (company) + :hook (go-mode . (lambda () + (setq-local company-backends + (append (list 'company-go) company-backends))))) + +(provide 'fcuny-company) |