aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes/company.el
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2019-06-23 11:43:30 -0700
committerRaúl Benencia <rul@kalgan.cc>2019-06-23 13:32:01 -0700
commit284c8327c95bb0c71b111ebf95723a35a478295c (patch)
treefaea9db4b1bba00d73d33b2065ed102f88b76b2c /.emacs.local.d/modes/company.el
Add emacs config
Diffstat (limited to '.emacs.local.d/modes/company.el')
-rw-r--r--.emacs.local.d/modes/company.el29
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)))
nihil fit ex nihilo