So I'm trying to use eclim with spacemacs and I have this function called eclim-java-format which reformat the text as in eclipse. The problems is that it reformats tabs as tabs and not as space and it sets tabs length to 2 and I prefer working with 4.

Do you know how I can tweek these tabs settings?

Even with emacs but not spacemacs answer is fine. I may try to figure out the rest of it.


Ok I after at least 2h of searching I finally found this! Which says :

(add-hook 'java-mode-hook (lambda ()
                            (setq c-basic-offset 4
                                  tab-width 4
                                  indent-tabs-mode t)))

and I put it in my .spacemacs in user-config function and it worked :D

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.