Emacs and Python

The following describes how I got an acceptable python working env under emacs 22 on debian etch.

python-mode, pylint etc.

I had to clean up a little:

apt-get install pymacs
apt-get remove pylint
apt-get remove python-mode
apt-get install python-mode
apt-get remove python-logilab-common
apt-get install pylint

You also need ipython.

You then need to get a epylint from somewhere (e.g. http://www.emacswiki.org/emacs/PythonMode, I picked the "alternative version") and put it into your path.

In .emacs:

(require 'ipython)
(setq ipython-command "/usr/bin/ipython")

(when (load "flymake" t)
      (defun flymake-pylint-init ()
        (let* ((temp-file (flymake-init-create-temp-buffer-copy
           (local-file (file-relative-name
                        (file-name-directory buffer-file-name))))
          (list "epylint" (list local-file))))
      (add-to-list 'flymake-allowed-file-name-masks
               '("\\.py\\'" flymake-pylint-init)))

(add-to-list 'flymake-allowed-file-name-masks
                           '("\\.py\\'" flymake-pylint-init))



(require 'pymacs)
(pymacs-load "ropemacs" "rope-")