From b17bbf272955b3af06c5ad9a4fc1435474808f31 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 8 Aug 2018 00:11:20 +0200 Subject: [PATCH] lang/cc: refactor company-(glsl|cmake) configs --- modules/lang/cc/config.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/lang/cc/config.el b/modules/lang/cc/config.el index 19a7057a3..ea1623f8b 100644 --- a/modules/lang/cc/config.el +++ b/modules/lang/cc/config.el @@ -161,12 +161,10 @@ compilation database is present in the project.") ;; ;; `cmake-mode' -(after! cmake-mode - (set-company-backend! 'cmake-mode '(company-cmake company-yasnippet))) - (def-package! company-cmake :when (featurep! :completion company) - :after cmake-mode) + :after cmake-mode + :config (set-company-backend! 'cmake-mode 'company-cmake)) ;; `demangle-mode' @@ -178,7 +176,7 @@ compilation database is present in the project.") (def-package! company-glsl :when (featurep! :completion company) :after glsl-mode - :config (set-company-backend! 'glsl-mode '(company-glsl))) + :config (set-company-backend! 'glsl-mode 'company-glsl)) ;;