From 4b9ae5fdb21a5a6eeba020d96ab07e5bb03131fd Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 3 Aug 2020 17:08:08 +0200 Subject: [PATCH] Switch to rust-mode --- config.org | 5 ++++- init.el | 2 +- packages.el | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index abe2ce3..c861e89 100644 --- a/config.org +++ b/config.org @@ -12,6 +12,7 @@ - [[#programming][Programming]] - [[#smart-parens][Smart parens]] - [[#rust][Rust]] + - [[#column-width][Column width]] - [[#cc][C/C++]] - [[#default-style][Default style]] - [[#flycheck][Flycheck]] @@ -145,10 +146,12 @@ Disable smart parens because half of the time it doesn't do what I want: ** Rust +*** Column width + =rustfmt= limits lines to 100 characters, let's display it correctly. #+BEGIN_SRC emacs-lisp -(add-hook! rustic-mode +(add-hook! rust-mode (set-fill-column 100)) #+END_SRC diff --git a/init.el b/init.el index 91611aa..d16d021 100644 --- a/init.el +++ b/init.el @@ -153,7 +153,7 @@ ;;rest ; Emacs as a REST client ;;rst ; ReST in peace ;;(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 ;;scheme ; a fully conniving family of lisps (sh ; she sells {ba,z,fi}sh shells on the C xor diff --git a/packages.el b/packages.el index 4aa6f6e..04b1fd3 100644 --- a/packages.el +++ b/packages.el @@ -54,3 +54,5 @@ ;; C/C++ mode adds this, and I don't really need it (package! irony :disable t) + +(package! rust-mode)