spacemacs/layers/+lang/gpu/packages.el
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00

45 lines
1.1 KiB
EmacsLisp

;;; packages.el --- GPU layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Evan Klitzke <evan@eklitzke.org>
;; URL: https://github.com/eklitzke
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(setq gpu-packages
'(
(company-glsl :location (recipe
:fetcher github
:repo "Kaali/company-glsl")
:requires company
:toggle (executable-find "glslangValidator"))
cuda-mode
glsl-mode
opencl-mode
))
(defun gpu/init-company-glsl ()
(use-package company-glsl
:defer t
:init (spacemacs|add-company-backends
:backends company-glsl
:modes glsl-mode)))
(defun gpu/init-cuda-mode ()
(use-package cuda-mode :defer t))
(defun gpu/init-glsl-mode ()
"Initialize GLSL mode"
(use-package glsl-mode
:defer t
:mode (("\\.fsh\\'" . glsl-mode)
("\\.vsh\\'" . glsl-mode))))
(defun gpu/init-opencl-mode ()
(use-package opencl-mode
:defer t
:mode (("\\.cl\\'" . opencl-mode))))