aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2025-04-13 19:22:19 +0200
committeralexpdp7 <alex@corcoles.net>2025-04-13 19:22:59 +0200
commit669ae48edcb82252e43031b57dad850cca5fd213 (patch)
tree14fe24423d101aa83f5cbb08307cde87b289a1e4 /emacs
parenteb26aee0a2370a504f1460ca6108829803253edd (diff)
Fix tabs in Rust
Diffstat (limited to 'emacs')
-rw-r--r--emacs/emacs.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el
index bf5070c2..2a6c4549 100644
--- a/emacs/emacs.el
+++ b/emacs/emacs.el
@@ -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 :(