Autocomplete Rust with M-<tab>
This commit is contained in:
		
							parent
							
								
									b114a79c36
								
							
						
					
					
						commit
						5b50bfea88
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -14,6 +14,7 @@ | |||
| (add-hook 'after-init-hook #'global-flycheck-mode) | ||||
| (add-hook 'flycheck-mode-hook #'flycheck-rust-setup) | ||||
| 
 | ||||
| 
 | ||||
| ;; Turn on Rust mode with *.rs files. | ||||
| (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode)) | ||||
| ;; Auto-format with rustfmt on save. | ||||
|  | @ -21,5 +22,6 @@ | |||
| 
 | ||||
| (define-key rust-mode-map (kbd "M-.") #'racer-find-definition) | ||||
| (define-key rust-mode-map (kbd "M-h") #'racer-describe) | ||||
| (define-key rust-mode-map (kbd "M-<tab>") #'company-indent-or-complete-common) | ||||
| 
 | ||||
| (provide 'jenga-rust) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue