From: alex Date: Sat, 17 Jun 2023 15:51:57 +0000 (+0200) Subject: Set Java indentation to 2, no tabs X-Git-Tag: 20240214-emacs~331 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=83ea74461fb8d1e6d1afa4bde89022c0c5bf3a16;p=alex.git Set Java indentation to 2, no tabs (This is what my Spotless seems to default with with the Google style) --- 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