Fix closing brackets not undoing an indentation level in rust
This commit is contained in:
		
							parent
							
								
									e5fd4455d8
								
							
						
					
					
						commit
						3b55af550b
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
					@ -332,6 +332,10 @@
 | 
				
			||||||
(add-hook 'c++-ts-mode-hook #'lsp-deferred)
 | 
					(add-hook 'c++-ts-mode-hook #'lsp-deferred)
 | 
				
			||||||
(add-hook 'typescript-ts-mode-hook #'lsp-deferred)
 | 
					(add-hook 'typescript-ts-mode-hook #'lsp-deferred)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;; Fix indent
 | 
				
			||||||
 | 
					(add-hook 'rust-ts-mode-hook
 | 
				
			||||||
 | 
					          (lambda () (setq-local electric-indent-chars '(?\n ?\( ?\) ?{ ?} ?\[ ?\] ?\; ?,))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(setq gc-cons-threshold (* 1024 1024 100)
 | 
					(setq gc-cons-threshold (* 1024 1024 100)
 | 
				
			||||||
      read-process-output-max (* 1024 1024))
 | 
					      read-process-output-max (* 1024 1024))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue