Slawomir Nowaczyk wrote: > Really, typing brace after function/if/etc should add newlines and > indent code as required -- automatically. Actually, for me, it is even > *less* typing in C and similar languages... I probably should teach my > Emacs to automatically add newline after colon in Python, just as it > does after a brace in C... As soon as I figure out how to deal with > dictionary literals. Hmmm.
Are you sure? My Emacs already know how to do it with the help of python-mode and magic function py-newline-and-indent. emacs-version "21.3.1" py-version "$Revision: 4.63 $" Regards, Rob -- http://mail.python.org/mailman/listinfo/python-list