lang/cc: (when ...) -> :when

This commit is contained in:
Henrik Lissner 2017-12-26 14:14:36 -05:00
parent b5cb8a0527
commit e5dcdadd5e
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -163,19 +163,27 @@ compilation database is present in the project.")
;;
;; Plugins
;; Company plugins
;;
(when (featurep! :completion company)
(def-package! company-cmake :after cmake-mode)
(def-package! company-cmake
:when (featurep! :completion company)
:after cmake-mode)
(def-package! company-irony :after irony)
(def-package! company-irony
:when (featurep! :completion company)
:after irony)
(def-package! company-irony-c-headers :after company-irony)
(def-package! company-irony-c-headers
:when (featurep! :completion company)
:after company-irony)
(def-package! company-glsl
(def-package! company-glsl
:when (featurep! :completion company)
:after glsl-mode
:config
(if (executable-find "glslangValidator")
(warn "glsl-mode: couldn't find glslangValidator, disabling company-glsl")
(set! :company-backend 'glsl-mode '(company-glsl)))))
(set! :company-backend 'glsl-mode '(company-glsl))))