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

@ -2825,6 +2825,8 @@ targets."
;; (load-file "./wgsl-ts-mode.el")
(load (concat user-emacs-directory "wgsl-mode.el"))
(defun chris/web-mode-setup ()
"some setup for web development"
(setq-local completion-at-point-functions
@ -2882,6 +2884,7 @@ targets."
#'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