I am trying to configure emacs with python-mode.el. I have done plenty of research, although I am still novice because I am not sure how to configure everything. I have used the following resources, which have been helpful:
- Why I chose python-mode.el: http://www.emacswiki.org/emacs/PythonProgrammingInEmacs
- General emacs modes info: https://www.gnu.org/software/emacs/manual/html_node/emacs/Choosing-Modes.html#Choosing-Modes
- Andrea Crotti explains his setup: http://www.youtube.com/watch?v=0cZ7szFuz18
- Andrea's configuration instructions via README.md
- Andrea's init.el file
- Jedi Repository
- Python 2.7 installed via Enthought Canopy
- Downloaded python-mode.el here
I have been setting up to use Andrea's approach, and I believe that I have the resources, but I still have questions:
- I have a
.emacsfile, which I know to remove. Should I migrate the contents of my.emacsfile under a new file,~/.emacs.d/init.el? - Since I plan to use Andrea's
init.elfile, should I add it with the contents from my old.emacsfile into a singleinit.elfile? - I extracted the python-mode .tar.gz file under
~\.emacs.d\python-mode.el-6.1.2. Is this correct, or should I use a package manager like ELPA? - From Andrea's
README.md, I can install Jedi viapip install jedi epc pylint. Where should I clone the Jedi repository, and where should I runpip install jedi epc pylint? - I have Enthought's Canopy python 2.7 installed under
C:\Users\Lucas\AppData\Local\Enthought\Canopy\User, which haspython.exealong withlibs(with all the libraries I'll need), but I am not sure if this location will cause me problems in the future. Should I re-install python 2.7 underC:\?
I am using Emacs version 24.3 OS: Windows 7
You do not need to. But I would recommend you to do so. Also you do not need to add your
configto Andrea'sinit.el, you can have in a separate file say in~/.emacs.d/my-config.eland then load it from theinit.elby appending(load "~/.emacs.d/my-config.el")to Andrea'sinit.el.I doubt you need this since Andrea's config already installs
python-mode.You do not need to clone
Jedirepository. You can runpip install jedi epc pylintfrom any location you wish.This should work fine as long
C:\Users\Lucas\AppData\Local\Enthought\Canopy\Userif in your path.