Can I run a python program from within emacs?

Sells, Fred fred.sells at adventistcare.org
Wed Mar 26 04:19:06 CET 2008


I use a .emacs file (attached) that some associates gave me nearly 20 years ago.  Some of it is OBE now, but it still works for me on both windows and Linux.  With this file I can cntrl-c cntrl-c  (i.e. ^c twice to run the current buffer).  Don't ask me to explain it, it just works.

> -----Original Message-----
> From: python-list-bounces+frsells=adventistcare.org at python.org
> [mailto:python-list-bounces+frsells=adventistcare.org at python.org]On
> Behalf Of Jeff Schwab
> Sent: Thursday, March 20, 2008 11:29 AM
> To: python-list at python.org
> Subject: Re: Can I run a python program from within emacs?
> 
> 
> Grant Edwards wrote:
> > On 2008-03-20, jmDesktop <needin4mation at gmail.com> wrote:
> > 
> >> Hi, I'm trying to learn Python.  I using Aquamac an emac
> >> implementation with mac os x.  I have a program.  If I go to the
> >> command prompt and type pythong myprog.py, it works.  Can 
> the program
> >> be run from within the editor or is that not how 
> development is done?
> >> I ask because I was using Visual Studio with C# and, if you're
> >> familiar, you just hit run and it works.  On Python do I use the
> >> editor for editing only and then run the program from the command
> >> line?
> > 
> > http://www.google.com/search?q=emacs+python
> 
> Or achieve a similar (more flexible (IMO), but less smoothly 
> integrated) 
> effect with Vim and GNU Screen.  Until recently, you had to 
> patch Screen 
> if you wanted vertical splits, but now it's in the main line.
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .emacs
Type: application/octet-stream
Size: 3635 bytes
Desc: .emacs
URL: <http://mail.python.org/pipermail/python-list/attachments/20080325/0d2ea074/attachment.obj>


More information about the Python-list mailing list