Mercurial > dotfiles
view .elisp/settings/99.rust.el @ 498:ab38b9bf226d
bootstrap: always install exec-path-from-shell-initialize
Required fixing the melpa URL, which has been broken ~forever.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 03 Oct 2020 11:14:06 -0400 |
parents | f08193904d93 |
children | 514374a2a5bc |
line wrap: on
line source
(use-package rust-mode :config (add-hook 'rust-mode-hook (lambda () (local-set-key (kbd "C-c <tab>") #'rust-format-buffer)))) (setq rust-format-on-save t) (use-package cargo :config (add-hook 'rust-mode-hook 'cargo-minor-mode)) (use-package company :init (use-package racer :init (add-hook 'rust-mode-hook #'racer-mode) (add-hook 'racer-mode-hook #'eldoc-mode) (add-hook 'racer-mode-hook #'company-mode) (setq company-tooltip-align-annotations t) )) (use-package flycheck-rust :init (add-hook 'flycheck-mode-hook #'flycheck-rust-setup) (add-hook 'rust-mode-hook 'flycheck-mode) )