From a943a2b3b4460c4857524c830c8d23d70d8141f1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 11 May 2013 11:48:39 +0100 Subject: Emacs: install and use company-mode --- emacs/init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index e674c10..b4f5513 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -296,6 +296,12 @@ (nconc smart-tab-completion-functions-alist '((php-mode . php-complete-function))) (diminish 'smart-tab-mode ""))) +(use-package company + :commands (company-mode) + :bind (("C-" . company-complete)) + :init (progn + (add-hook 'prog-mode-hook #'company-mode))) + ;;;; Directory browsing (use-package dired :defer t -- cgit 1.4.1