When I have a brief if-else statement where each action is a single line, I like to use the format:
if( cond ): print "True"
else: print "False"
I personally find this to be the most, elegant, concise and readable. Emacs, however, does not agree. It wants to indent it as:
if( cond ): print "True"
else: print "False"
Is there any way to change this behavior? I'm using emacs 24.3.1, and the python.el major-mode.
M-x indent-regiondoes when you just select the two lines.