aboutsummaryrefslogtreecommitdiff
path: root/emacs/emacs.el
diff options
context:
space:
mode:
authorAlex <alex.corcoles@veecle.io>2025-04-30 14:18:15 +0200
committeralexpdp7 <alex@corcoles.net>2025-04-30 14:19:51 +0200
commit0e4801b7ceddb9ff4ba11b6fead5e1746e557cf0 (patch)
treeed0ce4ab03b1f38ab8cff20dcf99c0592b64da9f /emacs/emacs.el
parent183b6cc833e73d62a7eec028d995a4269e2ee4a4 (diff)
Fix Rust indentation without .editorconfig
Diffstat (limited to 'emacs/emacs.el')
-rw-r--r--emacs/emacs.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el
index e9307f0b..4ff761f5 100644
--- a/emacs/emacs.el
+++ b/emacs/emacs.el
@@ -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