Added glsl layer for OpenGL shader syntax highlighting

This commit is contained in:
Alan Love 2016-06-18 00:33:53 -05:00 committed by d12frosted
parent 185fb67d3d
commit e7f113fc49
No known key found for this signature in database
GPG key ID: 8D33A3B1A4AF7D30
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#+TITLE: GLSL layer
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../../css/readtheorg.css" />
* Table of Contents
- [[Desscription][Description]]
- [[Install][Install]]
* Description
This layer provides syntax highlighting for GLSL shader files.
By default it will provide highlighting for files ending in:
- .glsl
- .vert
- .frag
- .geom
* Install
To use this configuration layer, add it to your =~.spacemacs=.
You will need to add =yaml= to the existing =dotspacemacs-configuration-layers=
list in this file.

View file

@ -0,0 +1,19 @@
;;; packages.el --- GLSL 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 glsl-packages '(glsl-mode))
(defun glsl/init-glsl-mode ()
"Initialize GLSL mode"
(use-package glsl-mode
:mode (("\\.glsl\\'" . glsl-mode)
("\\.vert\\'" . glsl-mode)
("\\.frag\\'" . glsl-mode)
("\\.geom\\'" . glsl-mode))))