+ tl;dr - I had to use a slightly modified indentation setup for java-mode to get close to the IntelliJ Java indentation scheme while doing some Java development. I also had to run Maven (mvn) lots from the command line so I’ve included some tips on that. If you hate unnecessary rambling, jump to the elisp code Generally, working with the Java programming language is not my first choice, but sometimes when money is involved I absolutely ignore my first choices.