Saturday, September 10, 2016

Emacs: simpler Prelude Python setup????

https://plus.google.com/+CharlBotha/posts/DuauoJJ8npy

OR

http://www.seaandsailor.com/emacs-config.html

Python

Prelude includes a Python module, but if you look deeper you will see it just enablessubword-mode (to make word moving commands jump inside CamelCase words) and disables electric-indent-mode (to disable automatic indentation after a line break), which is not much (and you may even disagree about this setup!). If you would like code completion, refactoring, code hinting, code navigation, inline documentation, and more, Elpy is a good option. Installing it depends on two steps, as it has both a Emacs and a Python package. You can simply follow these instructions and be happy with a boatload of features! You will also need to install either Rope or Jedi (from the Python side), which Elpy uses for code completion. Rope appears to have better refactoring features, so that's what I use. Note that you have to install Elpy and Rope to a place on your default PYTHONPATH, which you can do by running pip install --user elpy rope. This will install the packages to$HOME/.local/lib/python2.7/site-packages.