glsl/hlsl mode

This commit is contained in:
Janis 2024-10-17 20:24:41 +02:00
parent af6c8404cb
commit 8b9ae374ea

View file

@ -1272,6 +1272,8 @@ LSP sets it's prefix key to =s-l= by default, which uses the Super key which I u
lsp-modeline-code-actions-segments '(name count)
lsp-modeline-diagnostics-enable t
lsp-glsl-executable '("glsl_analyzer")
lsp-rust-server 'rust-analyzer
lsp-rust-analyzer-server-display-inlay-hints t
lsp-rust-analyzer-proc-macro-enable t
@ -1300,6 +1302,26 @@ LSP sets it's prefix key to =s-l= by default, which uses the Super key which I u
:commands lsp-ui-mode)
#+end_src
** Graphics
glsl-mode:
#+begin_src emacs-lisp
(use-package glsl-mode
:straight t
:defer t
:init
(add-to-list 'auto-mode-alist '("\\.vert\\'" . glsl-mode))
(add-to-list 'auto-mode-alist '("\\.glsl\\'" . glsl-mode))
(add-to-list 'auto-mode-alist '("\\.frag\\'" . glsl-mode))
)
#+end_src
hlsl-mode:
#+begin_src emacs-lisp
(require 'hlsl-mode)
(with-eval-after-load 'hlsl-mode
(add-to-list 'auto-mode-alist '("\\.hlsl\\'" . hlsl-mode))
(add-to-list 'auto-mode-alist '("\\.frag\\'" . hlsl-mode))
)
#+end_src
** Rust
[[https://github.com/rust-lang/rust-mode][rust-mode]]
#+begin_src emacs-lisp