Make settings based on the emacswiki documentation. http://www.emacswiki.org/emacs/PythonProgrammingInEmacs
All of them require pymacs, so install them accordingly.
On Ubuntu, you can install it with apt-get install pymacs
.
Three types are introduced. For the time being, ropemacs seemed to be troublesome I tried the other two.
Emacs for Python
I was a little addicted to the installation, but I just didn't understand how this Emacs for Python works. This completely changes Emacs into a Python development environment, and makes major changes to Emacs itself. If you want to use it, you should prepare a dedicated Emacs. Since there is a trade-off with other Emacs assets that already exist, we have not introduced it. The completed environment seemed to be very easy to use.
I was able to cooperate with such as without any problems
Elpy
The installation itself was a little tricky. First of all, python.el does not work well because it is different from what I expected in my environment.
This is used in my environment (emacs standard) http://www.loveshack.ukfsn.org/emacs/python.el
It seems that this was what I was assuming https://github.com/fgallina/python.el
So be careful when doing `` (require'python)
`.
imenu doesn't work
(semantic-mode 1)
(add-hook 'python-mode-hook
(lambda ()
(setq imenu-create-index-function 'python-imenu-create-index)))
After setting it like this and modifying it to work, it worked without any problems.
Cooperation with such as also worked without problems.
Recommended Posts