glsl/hlsl mode
This commit is contained in:
		
							parent
							
								
									af6c8404cb
								
							
						
					
					
						commit
						8b9ae374ea
					
				
							
								
								
									
										22
									
								
								init.org
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								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-code-actions-segments '(name count)
 | 
				
			||||||
   lsp-modeline-diagnostics-enable t
 | 
					   lsp-modeline-diagnostics-enable t
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   lsp-glsl-executable '("glsl_analyzer")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   lsp-rust-server 'rust-analyzer
 | 
					   lsp-rust-server 'rust-analyzer
 | 
				
			||||||
   lsp-rust-analyzer-server-display-inlay-hints t
 | 
					   lsp-rust-analyzer-server-display-inlay-hints t
 | 
				
			||||||
   lsp-rust-analyzer-proc-macro-enable 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)
 | 
					  :commands lsp-ui-mode)
 | 
				
			||||||
#+end_src
 | 
					#+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
 | 
					** Rust
 | 
				
			||||||
[[https://github.com/rust-lang/rust-mode][rust-mode]]
 | 
					[[https://github.com/rust-lang/rust-mode][rust-mode]]
 | 
				
			||||||
#+begin_src emacs-lisp
 | 
					#+begin_src emacs-lisp
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue