Added glsl layer for OpenGL shader syntax highlighting
This commit is contained in:
parent
185fb67d3d
commit
e7f113fc49
19
layers/+lang/glsl/README.org
Normal file
19
layers/+lang/glsl/README.org
Normal 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.
|
19
layers/+lang/glsl/packages.el
Normal file
19
layers/+lang/glsl/packages.el
Normal 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))))
|
Loading…
Reference in a new issue