fix(wpcarro/emacs): Update rust configuration

- Prefer LSP to racer
- Move KBDs to central location

Change-Id: Ib3fbf1b383d711f3ac6dd6d7791374b014b9df90
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6054
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
This commit is contained in:
William Carroll 2022-08-08 10:53:23 -07:00 committed by clbot
parent 60f6f5f10e
commit b92ceccfdb
3 changed files with 26 additions and 23 deletions

View file

@ -454,5 +454,19 @@
"C-v" #'clipboard-yank
"C-S-v" #'clipboard-yank)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Rust
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(general-define-key
:keymaps '(rust-mode-map)
:states '(normal)
"gd" #'lsp-find-definition
"gr" #'lsp-find-references)
(general-define-key
:keymaps '(rust-mode-map)
"TAB" #'company-indent-or-complete-common)
(provide 'keybindings)
;;; keybindings.el ends here