From 83ea74461fb8d1e6d1afa4bde89022c0c5bf3a16 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 17 Jun 2023 17:51:57 +0200 Subject: [PATCH] Set Java indentation to 2, no tabs (This is what my Spotless seems to default with with the Google style) --- emacs/emacs.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/emacs.el b/emacs/emacs.el index c6864c5..99198bb 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -77,6 +77,10 @@ (straight-use-package 'lsp-ui) (straight-use-package 'yasnippet) +(add-hook 'java-mode-hook (lambda () + (setq c-basic-offset 2 + indent-tabs-mode f))) + (yas-global-mode 1) ;; Rust support -- 2.47.3