N. Raghavendra wrote:
At 2005-07-18T05:06:09-07:00, Baloff wrote:


is there a way to just hit one key and it does "$make && ./project1"
for me?


In your source files, specify the value of the variable
`compile-command' like this:

/* * Local Variables:
 * mode: c
 * compile-command: "make && ./project1"
 * End:
 */

do you mean to put the above 4 lines in my c++ code but with out the /*, *, */? since they are for commenting?

If you want to bind, for instance, the function key `f5' to
compilation, you can put this in your init file:

(global-set-key [f5] 'compile)

when I put this line in my ~/.emacs and hit f5 I get "Mark set" in the mini buffer


HTH,
Raghavendra.


Hello
thanks,
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to