diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-03-22 10:48:58 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-03-22 10:48:58 -0700 |
commit | 8dbd7d5023f27f1c0f244b03f0bc3f7282804677 (patch) | |
tree | 0504f89672963fdfda5ddbc044a93e8c13100342 | |
parent | [git] ignore a file for aurora (diff) | |
download | emacs.d-8dbd7d5023f27f1c0f244b03f0bc3f7282804677.tar.gz |
[emacs] add support for rust.
-rw-r--r-- | emacs.d/lib/packages.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/emacs.d/lib/packages.el b/emacs.d/lib/packages.el index 1d42e09..9abfdb3 100644 --- a/emacs.d/lib/packages.el +++ b/emacs.d/lib/packages.el @@ -213,6 +213,7 @@ ("python" (mode . python-mode)) ("repl" (name . "repl")) ("ruby" (mode . ruby-mode)) + ("rust" (mode . rust-mode)) ("sh" (mode . sh-mode)) ("text" (mode . text-mode)))))) @@ -375,6 +376,18 @@ :config (setq recentf-save-file (expand-file-name "var/recentf" user-emacs-directory))) +(use-package rust-mode + :ensure t + :config + (use-package cargo + :hook (rust-mode . cargo-minor-mode) + :config + (setq compilation-ask-about-save nil) + ;; Automatically re-run compilation command on manual save inside a project. + ;; Will do nothing if a compilation hasn't been manually triggered + ;; in the past. + :diminish cargo-minor-mode)) + (use-package sh-script ;; configuration to interact with shell scripts :mode ("bashrc" . sh-mode) @@ -390,6 +403,9 @@ ;; install swiper :ensure t) +(use-package toml-mode + :ensure t) + (use-package tramp ;; configuration for tramp :config |