comparison .elisp/settings/99.rust.el @ 475:f08193904d93

emacs: enable rustfmt on save
author Augie Fackler <raf@durin42.com>
date Fri, 01 Feb 2019 22:54:46 -0500
parents 98484e1f564f
children 514374a2a5bc
comparison
equal deleted inserted replaced
474:e71b87fa8ea1 475:f08193904d93
1 (use-package rust-mode 1 (use-package rust-mode
2 :config (add-hook 'rust-mode-hook 2 :config (add-hook 'rust-mode-hook
3 (lambda () 3 (lambda ()
4 (local-set-key (kbd "C-c <tab>") #'rust-format-buffer)))) 4 (local-set-key (kbd "C-c <tab>") #'rust-format-buffer))))
5 (setq rust-format-on-save t)
5 6
6 (use-package cargo 7 (use-package cargo
7 :config (add-hook 'rust-mode-hook 'cargo-minor-mode)) 8 :config (add-hook 'rust-mode-hook 'cargo-minor-mode))
8 9
9 (use-package company 10 (use-package company