Running Python interpreter in Emacs
Philippe C. Martin
philippe at philippecmartin.com
Thu Jun 23 20:02:39 EDT 2005
Hi,
this is what I have:
(autoload 'python-mode "python-mode" "Python mode." t)
(setq auto-mode-alist (append '(("\\.\\(py\\)$" .
python-mode)) auto-mode-alist))
Plus, you can always spawn a shell then call your script (if the point is to
have access to the output).
Regards,
Philippe
Rex Eastbourne wrote:
> Hi,
>
> I'm interested in running a Python interpreter in Emacs. I have Python
> extensions for Emacs, and my python menu lists "C-c !" as the command
> to run the interpreter. Yet when I run it I get the message "Spawning
> Child Process: invalid argument." What do I need to do/download to fix
> this?
>
> I read in a post in this group from a while back where someone had the
> following lines in his .emacs file:
>
> (setq interpreter-mode-alist
> (cons '("python" . python-mode)
> interpreter-mode-alist))
>
> Does that have something to do with it? Do I have to set my load-path
> to my python interpreter?
>
> Thanks,
>
> Rex
More information about the Python-list
mailing list