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/shaders/packages.el
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00

30 lines
955 B
EmacsLisp

;;; packages.el --- shaders layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors
;;
;; Author: Alan Love <alan@cattes.us>
;; URL: https://github.com/ell
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GLPv3
(setq shaders-packages
'(glsl-mode
(company-glsl :location (recipe
:fetcher github
:repo "Kaali/company-glsl")
:toggle (and (configuration-layer/package-usedp 'company)
(executable-find "glslangValidator")))))
(defun shaders/init-company-glsl ()
(use-package company-glsl
:defer t
:init (spacemacs|add-company-backends
:backends company-glsl
:modes glsl-mode)))
(defun shaders/init-glsl-mode ()
"Initialize GLSL mode"
(use-package glsl-mode
:mode (("\\.fsh\\'" . glsl-mode)
("\\.vsh\\'" . glsl-mode))))