Reputation: 15814
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:
I have been setting up to use Andrea's approach, and I believe that I have the resources, but I still have questions:
.emacs
file, which I know to remove. Should I migrate the contents of my .emacs
file under a new file, ~/.emacs.d/init.el
? init.el
file, should I add it with the contents from my old .emacs
file into a single init.el
file?~\.emacs.d\python-mode.el-6.1.2
. Is this correct, or should I use a package manager like ELPA?README.md
, I can install Jedi via pip install jedi epc pylint
. Where should I clone the Jedi repository, and where should I run pip install jedi epc pylint
?C:\Users\Lucas\AppData\Local\Enthought\Canopy\User
, which has python.exe
along with libs
(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 under C:\
?I am using Emacs version 24.3 OS: Windows 7
Upvotes: 2
Views: 1253
Reputation:
I have a .emacs file, which I know to remove. Should I migrate the contents of my .emacs file under a new file, ~/.emacs.d/init.el? Since I plan to use Andrea's init.el file, should I add it with the contents from my old .emacs file into a single init.el file?
You do not need to. But I would recommend you to do so. Also you do not need to add your config
to Andrea's init.el
, you can have in a separate file say in ~/.emacs.d/my-config.el
and then load it from the init.el
by appending (load "~/.emacs.d/my-config.el")
to Andrea's init.el
.
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?
I doubt you need this since Andrea's config already installs python-mode
.
From Andrea's README.md, I can install Jedi via pip install jedi epc pylint. Where should I clone the Jedi repository, and where should I run pip install jedi epc pylint?
You do not need to clone Jedi
repository. You can run pip install jedi epc pylint
from any location you wish.
I have Enthought's Canopy python 2.7 installed under C:\Users\Lucas\AppData\Local\Enthought\Canopy\User, which has python.exe along with libs(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 under C:\?
This should work fine as long C:\Users\Lucas\AppData\Local\Enthought\Canopy\User
if in your path.
Upvotes: 1
Reputation: 4804
Looks good and should work. BTW python-mode.el doesn't require a configuration at all, for a first try: just open and evaluate it. Loading at start is preferable, but mandatory.
WRT to package manager, AFAIK its not distributed by ELPA, try el-get for example:
https://github.com/dimitri/el-get
Should bazaar be available, current trunk offers bug-fixes since last release - and hopefully not that many new bugs ;)
bzr branch lp:python-mode
With release 6.1.2: save buffer before executing it--C-c C-c, not to run into a bug.
Upvotes: 0