Fun times on Christmas vacation! What better time to get my Emacs environment working the way I want it? I’m going too try to keep it really simple this time. I’m going to get Rope, Pymacs, and Ropemacs to start with, and maybe these will be all I need for now.
First, I create a .emacs file in my home directory. I will fill it in as I go, and will include the final version when it’s complete. All that’s in it now is a line that says:
(add-to-list 'load-path "~.emacs.d/"). Also create a directory called .emacs.d. I had both of these things before, but deleted them and am starting from scratch because I had issues that I couldn’t solve.
1. Rope: downloaded from Sourceforge repository (Rope version 0.9.2). From terminal, ran setup.py with build, then install options. (for help, run setup.py –help-commands)
2. Pymacs: downloaded from Pymacs archives (Pymacs version 23). From terminal, ran the setup.py file with the build and install options again. I just put my .emacs.d/ directory in my emacs load-path (above), and then put the pymacs.el file in there. The Pymacs website suggests byte compiling for speed, which isn’t too complicated: just open emacs, type
M-x byte-compile-file RETpymacs.el RET.
3. Ropemacs: Last time I did this, I used the source repository on Bitbucket, but this time I just downloaded from the Sourceforge site (same as Rope, just scroll down). I installed the same way as for Rope and Pymacs using the setup.py script.
Final .emacs file:
(add-to-list ‘load-path "~.emacs.d/")
(autoload ‘pymacs-apply "pymacs")
(autoload ‘pymacs-call "pymacs")
(autoload ‘pymacs-eval "pymacs" nil t)
(autoload ‘pymacs-exec "pymacs" nil t)
(autoload ‘pymacs-load "pymacs" nil t)
(pymacs-load "ropemacs" "rope-")
And that’s it for now…Hopefully this will work for me. Maybe I’ll add Yasnippets eventually, but I don’t think I really have a need for that yet.