forked from colonelpanic/dotfiles
[Emacs] Use rls in rust-mode
This commit is contained in:
parent
89b138e63d
commit
8d0b4e3a9e
@ -2773,28 +2773,20 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package rust-mode
|
(use-package rust-mode
|
||||||
:mode (("\\.rs\\'" . rust-mode))
|
:mode (("\\.rs\\'" . rust-mode))
|
||||||
|
:hook (rust-mode . lsp)
|
||||||
:preface
|
:preface
|
||||||
(progn
|
(progn
|
||||||
(defun imalison:rust-mode-hook ()
|
(defun imalison:rust-mode-hook ()))
|
||||||
(racer-mode 1)))
|
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(use-package flycheck-rust
|
(use-package toml-mode)
|
||||||
:demand t
|
|
||||||
:config
|
;; Add keybindings for interacting with Cargo
|
||||||
(progn
|
|
||||||
(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)))
|
|
||||||
(use-package racer
|
|
||||||
:demand t
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(setq racer-cmd "~/.cargo/bin/racer")
|
|
||||||
(setq racer-rust-src-path "~/Projects/rust/src")))
|
|
||||||
(use-package cargo
|
(use-package cargo
|
||||||
:demand t
|
:hook (rust-mode . cargo-minor-mode))
|
||||||
:config
|
|
||||||
(progn
|
(use-package flycheck-rust
|
||||||
(add-hook 'rust-mode-hook 'cargo-minor-mode)))
|
:config (add-hook 'flycheck-mode-hook #'flycheck-rust-setup))
|
||||||
(add-hook 'rust-mode-hook 'imalison:rust-mode-hook)))
|
(add-hook 'rust-mode-hook 'imalison:rust-mode-hook)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** haskell
|
*** haskell
|
||||||
|
Loading…
Reference in New Issue
Block a user