This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/gpu/packages.el

45 lines
1.1 KiB
EmacsLisp
Raw Normal View History

2017-04-07 17:54:47 +00:00
;;; packages.el --- GPU layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2017 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")
2017-07-03 07:52:54 +00:00
: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)))
2017-04-07 17:54:47 +00:00
(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))))
2017-04-07 17:54:47 +00:00
(defun gpu/init-opencl-mode ()
(use-package opencl-mode
:defer t
:mode (("\\.cl\\'" . opencl-mode))))