summary refs log tree commit diff
path: root/configs/rcs/emacs.d
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2018-10-06 11:21:49 -0700
committerFranck Cuny <fcuny@twitter.com>2018-10-06 11:21:49 -0700
commit5bbfa8811fde04d5423da7e2a52ad1fb757b3d98 (patch)
tree063152dd2e00c03318ba04d0a423dbd8b210568b /configs/rcs/emacs.d
parent[emacs] empty scratch buffer (diff)
downloademacs.d-5bbfa8811fde04d5423da7e2a52ad1fb757b3d98.tar.gz
[emacs] add company-mode
This will require more configuration later.
Diffstat (limited to '')
-rw-r--r--configs/rcs/emacs.d/init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/rcs/emacs.d/init.el b/configs/rcs/emacs.d/init.el
index 48f5f6a..f7ed8eb 100644
--- a/configs/rcs/emacs.d/init.el
+++ b/configs/rcs/emacs.d/init.el
@@ -303,6 +303,15 @@
 
 ;;; prog mode
 
+(use-package company
+  :commands company-mode fcuny/company
+  :bind (("C-/" . company-complete))
+  :config
+  (setq company-idle-delay .25)
+  (global-company-mode)
+  :init
+  (add-hook 'prog-mode-hook (lambda () (company-mode t))))
+
 (use-package flycheck
   :custom
   (flycheck-idle-change-delay 2)