help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

indentation not working if parentheses are already closed


From: Jannis
Subject: indentation not working if parentheses are already closed
Date: Mon, 15 Apr 2013 19:06:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]