auto-completion: make helm-company use proper spacemacs idioms

This commit is contained in:
Kalle Lindqvist 2018-06-06 13:28:44 +02:00 committed by Sylvain Benner
parent eb4bc581c2
commit bba3a782cb
1 changed files with 7 additions and 6 deletions

View File

@ -157,13 +157,14 @@
(spacemacs/set-leader-keys "is" 'spacemacs/helm-yas)
(setq helm-c-yas-space-match-any-greedy t))))
(defun auto-completion/init-helm-company ()
(use-package helm-company
:if (configuration-layer/package-used-p 'company)
:defer t
:init
(with-eval-after-load 'company
(defun auto-completion/pre-init-helm-company ()
(spacemacs|use-package-add-hook company
:post-config
(use-package helm-company
:defer t
:init
(define-key company-active-map (kbd "C-/") 'helm-company))))
(defun auto-completion/init-helm-company ())
(defun auto-completion/init-hippie-exp ()
;; replace dabbrev-expand