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