Have you tried enabling the built-in indentation mode M-x electric-indent-mode
Without this enabled I get the same problem as you. On Wednesday, 8 January 2014 23:13:24 UTC+2, Jordan Meyer wrote: > > Anyone? > > On Monday, November 25, 2013 2:04:53 AM UTC-5, Jordan Meyer wrote: >> >> I'm just getting started with Julia, and playing around with editing >> scripts in julia-mode from the latest version of ESS. I'm hoping someone >> can explain what I'm missing with indentation here. Say I want to make an >> if statement. I type "if 1", then hit enter, and the new line is properly >> indented. But if I type "end" and press enter, the indentation of the "end" >> line is not automatically brought back to to the same level as the "if". >> This is the expected behavior in other ESS editing modes like R for >> example. So I thought that perhaps it would be like python's editing mode, >> where you can backspace out of indentation levels. But this doesn't work >> either. What does work is if I type "if 1 end", then move the cursor back >> to just before "end", then hit enter. Then "end" is properly at the same >> indentation level as the corresponding "if". But this situation is wholly >> unsatisfactory and I feel like I must be missing something obvious. Is this >> the case? If so, what? Thanks in advance. >> >