From 0e4801b7ceddb9ff4ba11b6fead5e1746e557cf0 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 30 Apr 2025 14:18:15 +0200 Subject: [PATCH] Fix Rust indentation without .editorconfig --- emacs/emacs.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emacs/emacs.el b/emacs/emacs.el index e9307f0..4ff761f 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 -- 2.47.3