adding wgsl-mode

This commit is contained in:
Chris Cochrun 2025-07-10 10:07:08 -05:00
parent 568171bac0
commit 0b9f2c5f8b
3 changed files with 134 additions and 0 deletions

View file

@ -3820,6 +3820,10 @@ I'd like to start learning and using rust if I can.
;; (load-file "./wgsl-ts-mode.el")
#+end_src
#+begin_src emacs-lisp
(load (concat user-emacs-directory "wgsl-mode.el"))
#+end_src
*** Web
For developing websites, I like to use web-mode
#+begin_src emacs-lisp
@ -3939,6 +3943,7 @@ Let's give eglot a try.
#'cape-file))))
(add-hook 'eglot-managed-mode-hook #'chris/eglot-capf)
(add-to-list 'eglot-server-programs '(wgsl-mode "wgsl-analyzer"))
:general
(general-def 'normal eglot-mode-map