From 604bbcd1d5cc9d623a6afa59fd7090b5b653fb2d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 18 Apr 2018 18:21:43 -0400 Subject: [PATCH] ui/posframe: replace company-childframe with company-box --- modules/ui/posframe/config.el | 18 +++++++++++------- modules/ui/posframe/packages.el | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/modules/ui/posframe/config.el b/modules/ui/posframe/config.el index de4a49895..2c42d5e65 100644 --- a/modules/ui/posframe/config.el +++ b/modules/ui/posframe/config.el @@ -7,15 +7,19 @@ (add-hook 'doom-escape-hook #'+posframe|delete-on-escape)) -(def-package! company-childframe - :when (featurep! :completion company) +(def-package! company-box :when EMACS26+ - :after company + :hook (company-mode . company-box-mode) :config - (setq company-childframe-notification nil) - (company-childframe-mode 1) - (after! desktop - (push '(company-childframe-mode . nil) desktop-minor-mode-table))) + (setq company-frontends (delq 'company-pseudo-tooltip-frontend company-frontends) + company-box-icons-elisp + (list (concat (all-the-icons-material "functions") " ") + (concat (all-the-icons-material "check_circle") " ") + (concat (all-the-icons-material "stars") " ") + (concat (all-the-icons-material "format_paint") " ")) + company-box-icons-unknown (concat (all-the-icons-material "find_in_page") " ") + company-box-backends-colors nil + company-box-icons-yasnippet (concat (all-the-icons-material "short_text") " "))) (def-package! ivy-posframe diff --git a/modules/ui/posframe/packages.el b/modules/ui/posframe/packages.el index b6045ed33..7d57cf40e 100644 --- a/modules/ui/posframe/packages.el +++ b/modules/ui/posframe/packages.el @@ -3,6 +3,6 @@ (when EMACS26+ (when (featurep! :completion company) - (package! company-childframe)) + (package! company-box)) (when (featurep! :completion ivy) (package! ivy-posframe)))