Autocomplete Rust with M-<tab>

This commit is contained in:
Vladan Popovic 2019-12-08 21:56:34 +01:00
parent b114a79c36
commit 5b50bfea88
1 changed files with 2 additions and 0 deletions

View File

@ -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)