]> xn--ix-yja.es Git - alex.git/commitdiff
Fix tabs in Rust
authoralex <alex@pdp7.net>
Sun, 13 Apr 2025 17:22:19 +0000 (19:22 +0200)
committeralexpdp7 <alex@corcoles.net>
Sun, 13 Apr 2025 17:22:59 +0000 (19:22 +0200)
emacs/emacs.el

index bf5070c2768bc8463f34a01dc88d1a97c8756160..2a6c4549d2dca020953bd240e5ea9cdde2eb9821 100644 (file)
@@ -82,6 +82,9 @@
   (setq rustic-format-on-save t)
   (setq rustic-rustfmt-args "--edition 2018"))
 
+(add-hook 'rust-mode-hook
+          (lambda () (setq indent-tabs-mode nil)))
+
 ;; Python support
 ; https://github.com/jorgenschaefer/elpy/issues/1890#issuecomment-792361668
 ; Need to downgrade jedi to get it to work :(