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
2016-12-14 20:21:28 +02:00

35 lines
972 B
EmacsLisp

;;; packages.el --- shaders layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2016 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
(company-glsl
:location (recipe
:fetcher github
:repo "Kaali/company-glsl")
:toggle (and (configuration-layer/package-usedp 'company)
(executable-find "glslangValidator")))))
(defun shaders/post-init-company ()
(spacemacs|add-company-hook glsl-mode))
(defun shaders/init-company-glsl ()
(use-package company-glsl
:defer t
:init
(push 'company-glsl
company-backends-glsl-mode)))
(defun shaders/init-glsl-mode ()
"Initialize GLSL mode"
(use-package glsl-mode
:mode (("\\.fsh\\'" . glsl-mode)
("\\.vsh\\'" . glsl-mode))))