Ready for Python development with Emacs in just 60 seconds2013-11-30
This post demonstrates how you can configure a very decent environment for Python development with Emacs, in just 60 seconds.
A dream is now true: The first time you start Emacs, it automagically downloads and configures all plugins you need. Emacs is then just ready to work and you can start typing code immediately.
For the impatient
- Save configuration files you eventually have!
tar cpf dot-emacs.ORIGINAL.tar.gz .emacs .emacs.d
mv .emacs dot-emacs.ORIGINAL
mv .emacs.d dot-emacs.d.ORIGINAL
- Remove any Emacs configuration files you eventually have.
rm -r -f .emacs .emacs.d
- Install Python libraries
This should be done preferably inside a virtual environment.
workon py276 #-- py276 is a virtualenv I'm using
pip install epc
pip install jedi
pip install elpy
- Download my .emacs file onto your home folder.
ln -s dot-emacs.el .emacs
- Start emacs. It will configure itself when it first run!
Features in a nutshell
- python-mode and cython-mode
- jedi: provides auto completion
- flymake: highlight syntax errors as you type
That's it: ready for coding in 60 seconds :)
Please let me know if you find issues.
If you found this article useful, it will be much appreciated if you create a link to this article somewhere in your website. Thanks