From a72a9aa26c1635ce994adbe8745790d9954c5cdf Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 17 Feb 2018 10:31:36 -0500 Subject: [PATCH] cmake: sort package configuration --- layers/+tools/cmake/packages.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layers/+tools/cmake/packages.el b/layers/+tools/cmake/packages.el index fb49eeb7f..8d467499a 100644 --- a/layers/+tools/cmake/packages.el +++ b/layers/+tools/cmake/packages.el @@ -10,8 +10,8 @@ ;;; License: GPLv3 (setq cmake-packages '( - cmake-mode cmake-ide + cmake-mode company (helm-ctest :requires helm) )) @@ -39,6 +39,10 @@ :defer t :mode (("CMakeLists\\.txt\\'" . cmake-mode) ("\\.cmake\\'" . cmake-mode)))) +(defun cmake/post-init-company () + (when (configuration-layer/package-used-p 'cmake-mode) + (spacemacs|add-company-backends :backends company-cmake :modes cmake-mode))) + (defun cmake/init-helm-ctest () (use-package helm-ctest :defer t @@ -46,7 +50,3 @@ (dolist (mode cmake-modes) (spacemacs/set-leader-keys-for-major-mode mode "pt" 'helm-ctest)))) - -(defun cmake/post-init-company () - (when (configuration-layer/package-used-p 'cmake-mode) - (spacemacs|add-company-backends :backends company-cmake :modes cmake-mode)))