diff options
| author | alex <alex@pdp7.net> | 2023-06-17 17:51:57 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-06-17 17:51:57 +0200 |
| commit | 83ea74461fb8d1e6d1afa4bde89022c0c5bf3a16 (patch) | |
| tree | fc0fa1a48bf19c68f8bf94abca7518905250ed11 /emacs/emacs.el | |
| parent | 60a0d5266fbf7f4fbfd402755e3f39735203793f (diff) | |
Set Java indentation to 2, no tabs
(This is what my Spotless seems to default with with the Google style)
Diffstat (limited to 'emacs/emacs.el')
| -rw-r--r-- | emacs/emacs.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el index c6864c55..99198bb0 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 |
