]> xn--ix-yja.es Git - alex.git/commitdiff
Set Java indentation to 2, no tabs
authoralex <alex@pdp7.net>
Sat, 17 Jun 2023 15:51:57 +0000 (17:51 +0200)
committeralex <alex@pdp7.net>
Sat, 17 Jun 2023 15:51:57 +0000 (17:51 +0200)
(This is what my Spotless seems to default with with the Google style)

emacs/emacs.el

index c6864c5517f73a7756956497e06cc0aec540842a..99198bb089fa2ec801c86fe2e02476c74fcab600 100644 (file)
 (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