From 7e97b47c93b6f170cc5aa714eb2d49b2a76be899 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 30 Jun 2019 13:24:03 +0200 Subject: Emacs: update company setup - Use TNG (incompatible with company-box)[0] - Setup company-tabnine - Use recommended company-tabnine configuration [0]: https://github.com/sebastiencs/company-box/issues/47 --- emacs/.emacs.d/main.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 3e68008..80cf84e 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -204,7 +204,7 @@ With two prefix arguments, write out the day and month name." :after (evil) :demand t :commands (evil-collection-init) - :custom ((evil-collection-company-use-tng nil)) + :custom ((evil-collection-company-use-tng t)) :config (progn (evil-collection-init))) @@ -309,7 +309,8 @@ With two prefix arguments, write out the day and month name." (use-package company :commands (company-explicit-action-p) :custom ((global-company-mode +1) - (company-idle-delay .5) + (company-idle-delay 0) + (company-show-numbers t) (company-begin-commands '(self-insert-command)) (company-auto-complete #'company-explicit-action-p) (company-auto-complete-chars '(?\ ?\( ?\) ?.))) @@ -317,10 +318,10 @@ With two prefix arguments, write out the day and month name." "TAB" #'company-complete)) (use-package all-the-icons) -(use-package company-box - :custom ((company-box-enable-icon nil) - (company-dabbrev-downcase nil)) - :ghook 'company-mode-hook) + +(use-package company-tabnine + :config (progn + (add-to-list 'company-backends #'company-tabnine))) ;;; Documentation -- cgit 1.4.1