I'm using emacs 24.3 and Ubuntu 12.04 LTS. How do I make emacs automatically indent lines in Python, like in IDLE? Currently, it does not do that.
Also, in general, how would I do this for any programming language, say, Java or c++?
You can try other python modes, like emacs-for-python or elpy, as given by this doc: http://wikemacs.org/index.php/Python (though the default mode works fine for me on the same config).
You can install them with package.el (M-x package-install RET elpy RET
) and call them as explained.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments