]> xn--ix-yja.es Git - alex.git/commitdiff
Fix Rust indentation without .editorconfig
authorAlex <alex.corcoles@veecle.io>
Wed, 30 Apr 2025 12:18:15 +0000 (14:18 +0200)
committeralexpdp7 <alex@corcoles.net>
Wed, 30 Apr 2025 12:19:51 +0000 (14:19 +0200)
emacs/emacs.el

index e9307f0bd3e1983566410163c52a1c5651df8ecd..4ff761f5e6d7a708de032099afb281297da3efe6 100644 (file)
@@ -66,7 +66,9 @@
   (setq rustic-rustfmt-args "--edition 2018")
   (setq rustic-lsp-client 'eglot)
   ;; https://github.com/emacs-rustic/rustic/issues/99
-  (put 'rustic-indent-offset 'safe-local-variable 'integerp))
+  (put 'rustic-indent-offset 'safe-local-variable 'integerp)
+  (add-hook 'rustic-mode-hook
+            (lambda () (setq indent-tabs-mode nil))))
 
 ;; https://download.eclipse.org/jdtls/milestones/1.43.0/jdt-language-server-1.43.0-202412191447.tar.gz is the last language server that supports Debian 12 JDK
 ;; Untar the archive and symlink the jdtls binary in ~/.local/bin