logo       

Re: Ipython and Aquamacs: msg#00009

emacs.macintosh.osx

Subject: Re: Ipython and Aquamacs

Hi Tony

On 8 Dec 2006, at 17:27, Tony Mannucci wrote:

Debugger entered--Lisp error: (void-variable py-shell-map)
(define-key py-shell-map (kbd "RET") (quote ipython-send-and- indent))

chances are that the python-mode that comes with Aquamacs is a newer (older, or different) version of the python mode that you're using. IIRC, there are several python-modes out there.

(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)

leave this out - not needed.

(require 'ipython) ; I added this

OK, since you have your own python-mode, I suggest you simply load that python-mode file explicitly before requiring `ipython'. Do this:

(load "...path-to-your/python-mode.el")

before the "require" statement.

Does that help?

Btw. is ipython very useful? Should we include it with Aquamacs?

- Dave

--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!




---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs@xxxxxxxxxxxxxxxxx>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise