35 lines
972 B
EmacsLisp
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))))
|