2008-04-14

Aquamacs and Python

Aquamacs with Python completion and ipython

  1. Install Pymacs (python setup.py install)
  2. Make sure you have pymac-services and rebox in your PATH. They install where the python binaries are.
  3. Install python-mode.el in your site-lisp (/Library/Application\ Support/Emacs/site-lisp (create if necessary))

    1. 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

  4. Install ipython
  5. 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: