spacemacs/layers/+lang/gpu/packages.el
syl20bnr 29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00

42 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
:init (spacemacs|add-company-backends
:backends company-glsl
:modes glsl-mode)))
(defun gpu/init-cuda-mode ()
(use-package cuda-mode))
(defun gpu/init-glsl-mode ()
"Initialize GLSL mode"
(use-package glsl-mode
:mode (("\\.fsh\\'" . glsl-mode)
("\\.vsh\\'" . glsl-mode))))
(defun gpu/init-opencl-mode ()
(use-package opencl-mode
:mode (("\\.cl\\'" . opencl-mode))))