- Install Pymacs (python setup.py install)
- Make sure you have pymac-services and rebox in your PATH. They install where the python binaries are.
- Install python-mode.el in your site-lisp (/Library/Application\ Support/Emacs/site-lisp (create if necessary))
- from the python mode folder copy pycomplete.py to your python site-packages (or otherwise add it to your python path.) and the .el files to your site-lisp directory
- Install ipython
- edit your .emacs
(your path may differ, as well as your mileage)
(setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '("python" . python-mode) interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
(autoload 'pymacs-load "pymacs" nil t)
(autoload 'pymacs-eval "pymacs" nil t)
(autoload 'pymacs-apply "pymacs")
(autoload 'pymacs-call "pymacs")
(require 'pycomplete)
(setq ipython-command "/Library/Frameworks/Python.framework/Versions/Current/bin/ipython")
(require 'ipython)
No comments:
Post a Comment