[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running Programs from Inside Emacs
From: |
Pascal J. Bourguignon |
Subject: |
Re: Running Programs from Inside Emacs |
Date: |
Thu, 17 Feb 2011 12:15:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
haziz <hsaziz@gmail.com> writes:
> When using emacs for programming in C, I know how to compile programs from
> inside emacs using Mx compile to invoke make -k which then compiles using gcc
> (I am running Linux Mint on a desktop machine at home and also use Mac OS X
> on a laptop).
>
> I have so far been unable to figure out how to "run" the resulting binary
> from inside emacs. I would like to be able to then run the binary file from
> inside emacs. So far I have had to exit emacs returning to my bash shell to
> run the binary by for e.g. ./helloworld
For non-interactive programs you can run them after the compilation:
M-x compile RET C-e && ./helloword RET
> Is it possible to get a shell prompt inside emacs and run the file in a
> secondary buffer within emacs?
M-x shell RET
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.