There are cases where my indentation style does not follow what Emacs thinks it should be. (I believe that coding standards should be guidelines, not strict rules, and that deviations should be acceptable if there's good justification for them.)
For example, I might want to format code in C like:
if ( test_some_condition()
&& test_another_condition()
&& test_yet_another_condition())
{
// ...
}
So I type:
if ( test_some_condition()
&& test_another_condition
but when I press (
, Emacs will aggressively reindent my current line to:
if ( test_some_condition()
&& test_another_condition(
Is there any way disable that? That is:
- I do want new lines to be automatically indented based on the previous line.
- Once I start typing, I've already indented the current line the way I want it, and I don't want it to be reformatted when I press
(
,)
,RET
, etc.