[ESS] indentation not working if parentheses are already closed

Jannis bt_jannis at yahoo.de
Tue Apr 16 10:32:36 CEST 2013


Dear ess community,


usually the automatic indentation in ess works like a charm. I have 
however, experienced that it does not work in case I add a newline and 
the matching parenthesis is already closed. E.g. hitting Return after


foo = function() {


would indent the following line correctly, but placing the cursor 
between the two curly braces here:

foo = function() {<cursor here>}

and hitting enter, results in a non indented new line. Is this a bug? Or 
intended? Or is there a way to switch it off?

I ask as I just installed smartparens.el which creates balanced 
parentheses automatically and, hence, would switch off the really 
helpful indentation behavior.


Cheers
jannis


P.S. Sorry for crossposting to gnu-emacs-help, ... I realized after 
submitting the mail that ess-help would be the more appropriate list.



More information about the ESS-help mailing list