diff options
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/Cask | 3 | ||||
-rw-r--r-- | tag-emacs/emacs.d/init.el | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask index c58f554..693e443 100644 --- a/tag-emacs/emacs.d/Cask +++ b/tag-emacs/emacs.d/Cask @@ -13,6 +13,7 @@ (depends-on "cask") (depends-on "cdnjs") (depends-on "company") +(depends-on "company-go") (depends-on "dash-at-point") (depends-on "deferred") (depends-on "diff-hl") @@ -29,6 +30,8 @@ (depends-on "framemove") (depends-on "geiser") (depends-on "ggtags") +(depends-on "go-eldoc") +(depends-on "go-mode") (depends-on "goto-chg") (depends-on "haskell-mode") (depends-on "helm") diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 62bd000..5b5feef 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -591,6 +591,20 @@ :diminish (flycheck-mode . " ✓") :init (global-flycheck-mode)) +(req-package company-go + :require go-mode + :config (progn + (setq company-go-show-annotation t) + (defun ap/company-go-setup () + (set (make-local-variable 'company-backends) + '(company-go))) + (add-hook 'go-mode-hook #'ap/company-go-setup))) + +(req-package go-eldoc + :require go-mode + :config (progn + (add-hook 'go-mode-hook #'go-eldoc-setup))) + (req-package auto-compile :init (add-hook 'emacs-lisp-mode-hook #'auto-compile-on-save-mode)) |