From 8b9ae374ea9c10367e5a9afcb89cdb40daa59291 Mon Sep 17 00:00:00 2001 From: Janis Date: Thu, 17 Oct 2024 20:24:41 +0200 Subject: [PATCH] glsl/hlsl mode --- init.org | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/init.org b/init.org index 892c33d..efe8e36 100644 --- a/init.org +++ b/init.org @@ -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