feat(gs/emacs): Setup rust
Change-Id: I98e2badbaec523e509a2d311a13d8d2d81f4cda8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2222 Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
		
							parent
							
								
									23f1bac044
								
							
						
					
					
						commit
						3f9bd60d85
					
				
					 2 changed files with 9 additions and 0 deletions
				
			
		
							
								
								
									
										8
									
								
								users/glittershark/emacs.d/rust.el
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								users/glittershark/emacs.d/rust.el
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| ;;; ../code/depot/users/glittershark/emacs.d/rust.el -*- lexical-binding: t; -*- | ||||
| 
 | ||||
| (defun grfn/rust-setup () | ||||
|   (setq lsp-rust-server 'rust-analyzer) | ||||
|   (rust-enable-format-on-save) | ||||
|   (lsp)) | ||||
| 
 | ||||
| (add-hook 'rust-mode-hook #'grfn/rust-setup) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue