Add packages and configurations to use emacs as a rust ide.
This commit is contained in:
parent
854c97cabe
commit
4536faa26c
@ -107,6 +107,11 @@
|
|||||||
'(doom-themes
|
'(doom-themes
|
||||||
outline-magic
|
outline-magic
|
||||||
multiple-cursors
|
multiple-cursors
|
||||||
|
rust-mode
|
||||||
|
cargo
|
||||||
|
flycheck-rust
|
||||||
|
racer
|
||||||
|
;;company-mode
|
||||||
org2blog
|
org2blog
|
||||||
pylint
|
pylint
|
||||||
python-mode
|
python-mode
|
||||||
@ -158,11 +163,9 @@
|
|||||||
'(org-modules
|
'(org-modules
|
||||||
'(org-bbdb org-bibtex org-docview org-gnus org-habit org-info org-irc org-mhe org-rmail org-w3m))
|
'(org-bbdb org-bibtex org-docview org-gnus org-habit org-info org-irc org-mhe org-rmail org-w3m))
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(color-theme-sanityinc-tomorrow org2blog multiple-cursors flymake-python-pyflakes pdf-tools weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode)))
|
'(racer flycheck-rust rust-mode color-theme-sanityinc-tomorrow org2blog multiple-cursors flymake-python-pyflakes pdf-tools weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode)))
|
||||||
|
|
||||||
|
|
||||||
;; run emacs as server (connect to it with `emacsclient`)
|
|
||||||
|
|
||||||
;; PYTHON CONFIGURATION
|
;; PYTHON CONFIGURATION
|
||||||
;; --------------------------------------
|
;; --------------------------------------
|
||||||
|
|
||||||
@ -196,4 +199,21 @@
|
|||||||
;; shell confs
|
;; shell confs
|
||||||
(exec-path-from-shell-copy-env "PATH") ; copy PATH from shell
|
(exec-path-from-shell-copy-env "PATH") ; copy PATH from shell
|
||||||
|
|
||||||
|
;; run emacs as server (connect to it with `emacsclient`)
|
||||||
(server-start)
|
(server-start)
|
||||||
|
|
||||||
|
;; RUST CONFIGURATION
|
||||||
|
;; --------------------------------------
|
||||||
|
|
||||||
|
(add-hook 'rust-mode-hook 'cargo-minor-mode)
|
||||||
|
(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
|
||||||
|
(add-hook 'rust-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(local-set-key (kbd "C-c <tab>") #'rust-format-buffer)))
|
||||||
|
|
||||||
|
(setq racer-cmd "~/.cargo/bin/racer") ;; Rustup binaries PATH
|
||||||
|
(setq racer-rust-src-path "~/gitshit/rust/src") ;; Rust source code PATH
|
||||||
|
|
||||||
|
(add-hook 'rust-mode-hook #'racer-mode)
|
||||||
|
(add-hook 'racer-mode-hook #'eldoc-mode)
|
||||||
|
(add-hook 'racer-mode-hook #'company-mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user