From fceb7962cec4713cbc66e31f0077f0f8ebc28d26 Mon Sep 17 00:00:00 2001 From: Gwen Lofman Date: Fri, 1 Oct 2021 17:55:25 -0400 Subject: [PATCH] Add WGSL mode for syntax highlighting Using a fork to fix some regex errors. I am not sure why their version of regex is different from mine, but I was able to get it working. Made a fork on github. --- .gitmodules | 4 ++++ emacs/github-packages/wgsl-mode | 1 + emacs/init.el | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 .gitmodules create mode 160000 emacs/github-packages/wgsl-mode diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6f59f88 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "emacs/github-packages/wgsl-mode"] + path = emacs/github-packages/wgsl-mode + url = https://github.com/glfmn/wgsl-mode + branch = fix-regex diff --git a/emacs/github-packages/wgsl-mode b/emacs/github-packages/wgsl-mode new file mode 160000 index 0000000..cf2779e --- /dev/null +++ b/emacs/github-packages/wgsl-mode @@ -0,0 +1 @@ +Subproject commit cf2779ec15cb6315f2d887a7287afc7da5d734b9 diff --git a/emacs/init.el b/emacs/init.el index 200ee55..d8bd2e0 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -236,4 +236,7 @@ :diminish cargo-minor-mode :hook (rust-mode . cargo-minor-mode)) +(use-package wgsl-mode + :load-path "~/.emacs.d/github-packages/wgsl-mode" + :mode "\\.wgsl\\'") ;;; init.el ends here