summary refs log tree commit diff
path: root/emacs.d/custom/fcuny-company.el
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-07-26 09:37:00 -0700
committerFranck Cuny <fcuny@twitter.com>2019-07-26 09:37:00 -0700
commita1644b85424e383490a6eda084a51b9028b2c2a3 (patch)
tree944a9d5a8d57fb83a02dd8b272a8f77fdaf3e3f1 /emacs.d/custom/fcuny-company.el
parent[git] some clean up (diff)
downloademacs.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 'emacs.d/custom/fcuny-company.el')
-rw-r--r--emacs.d/custom/fcuny-company.el12
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)