diff options
Diffstat (limited to '.emacs.local.d/modes/company.el')
-rw-r--r-- | .emacs.local.d/modes/company.el | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.emacs.local.d/modes/company.el b/.emacs.local.d/modes/company.el new file mode 100644 index 0000000..dc80b33 --- /dev/null +++ b/.emacs.local.d/modes/company.el @@ -0,0 +1,29 @@ +;; Debian packages: elpa-company +;; Elpa packages: company-quickhelp + +(use-package company + :ensure t + :defer t + :init (global-company-mode) + :config + (progn + ;; Use Company for completion + (bind-key [remap completion-at-point] #'company-complete company-mode-map) + + (setq company-tooltip-align-annotations t + ;; Easy navigation to candidates with M-<n> + company-show-numbers t) + (setq company-dabbrev-downcase nil)) + :diminish company-mode) + +(use-package company-quickhelp ; Documentation popups for Company + :ensure t + :defer t + :init (add-hook 'global-company-mode-hook #'company-quickhelp-mode)) + +(use-package company-go + :ensure t + :defer t + :init + (with-eval-after-load 'company + (add-to-list 'company-backends 'company-go))) |