Switch to rust-mode

This commit is contained in:
Antoine Martin 2020-08-03 17:08:08 +02:00
parent af589522f8
commit 4b9ae5fdb2
3 changed files with 7 additions and 2 deletions

View file

@ -12,6 +12,7 @@
- [[#programming][Programming]] - [[#programming][Programming]]
- [[#smart-parens][Smart parens]] - [[#smart-parens][Smart parens]]
- [[#rust][Rust]] - [[#rust][Rust]]
- [[#column-width][Column width]]
- [[#cc][C/C++]] - [[#cc][C/C++]]
- [[#default-style][Default style]] - [[#default-style][Default style]]
- [[#flycheck][Flycheck]] - [[#flycheck][Flycheck]]
@ -145,10 +146,12 @@ Disable smart parens because half of the time it doesn't do what I want:
** Rust ** Rust
*** Column width
=rustfmt= limits lines to 100 characters, let's display it correctly. =rustfmt= limits lines to 100 characters, let's display it correctly.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(add-hook! rustic-mode (add-hook! rust-mode
(set-fill-column 100)) (set-fill-column 100))
#+END_SRC #+END_SRC

View file

@ -153,7 +153,7 @@
;;rest ; Emacs as a REST client ;;rest ; Emacs as a REST client
;;rst ; ReST in peace ;;rst ; ReST in peace
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;;scala ; java, but good ;;scala ; java, but good
;;scheme ; a fully conniving family of lisps ;;scheme ; a fully conniving family of lisps
(sh ; she sells {ba,z,fi}sh shells on the C xor (sh ; she sells {ba,z,fi}sh shells on the C xor

View file

@ -54,3 +54,5 @@
;; C/C++ mode adds this, and I don't really need it ;; C/C++ mode adds this, and I don't really need it
(package! irony :disable t) (package! irony :disable t)
(package! rust-mode)