From 316a9f06b289955550f75375178da5ddb895c861 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 4 Aug 2018 02:14:43 +0200 Subject: [PATCH] completion/company: add company-prescient --- modules/completion/company/config.el | 7 +++++++ modules/completion/company/packages.el | 1 + 2 files changed, 8 insertions(+) diff --git a/modules/completion/company/config.el b/modules/completion/company/config.el index f019ff89a..2d454a357 100644 --- a/modules/completion/company/config.el +++ b/modules/completion/company/config.el @@ -29,6 +29,13 @@ :config (setq company-idle-delay 0.2)) +(def-package! company-prescient + :hook (company-mode . company-prescient-mode) + :config + (setq prescient-save-file (concat doom-cache-dir "prescient-save.el")) + (prescient-persist-mode +1)) + + (def-package! company-box :when (and EMACS26+ (featurep! +childframe)) :hook (company-mode . company-box-mode) diff --git a/modules/completion/company/packages.el b/modules/completion/company/packages.el index 3de2d1da3..1e2b7a64b 100644 --- a/modules/completion/company/packages.el +++ b/modules/completion/company/packages.el @@ -3,5 +3,6 @@ (package! company) (package! company-dict) +(package! company-prescient) (when (and EMACS26+ (featurep! +childframe)) (package! company-box))