From d828d7ccffcdac7ba13912f05b7c82ac667a2b3d Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 12 Jun 2023 21:51:48 +0800 Subject: wgsl: major mode for WGSL files. * init.el (wgsl-mode, auto-mode-alist): Add support for WebGpu Shader Language files. * wgsl-conf.el ("wgsl-mode"): Use a package for syntax-highlighting and basic stuff. --- init.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 32b0b28..ae90b89 100644 --- a/init.el +++ b/init.el @@ -166,6 +166,14 @@ no effect." (add-to-list 'auto-mode-alist (cons "\\.fs$" #'glsl-mode)) (add-to-list 'auto-mode-alist (cons "\\.vs$" #'glsl-mode)) +;;; Prepare for WGSL + +;;;###autoload +(load-after-function wgsl-mode "wgsl-conf.el" + "Fake mode that loads the package." nil (wgsl-mode)) + +(add-to-list 'auto-mode-alist (cons "\\.wgsl$" #'wgsl-mode)) + ;;; rainbow-mode (use-package "rainbow-mode" 'rainbow-mode) -- cgit v1.2.3-18-g5258