help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile/run a code from emacs


From: N. Raghavendra
Subject: Re: compile/run a code from emacs
Date: 19 Jul 2005 10:39:34 +0530
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

At 2005-07-19T04:46:28-07:00, Baloff wrote:

> N. Raghavendra wrote:

> > 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?

The local variables section should be commented, since it is not part
of your source code.  So, do not remove the comment delimiters.

> > (global-set-key [f5] 'compile)
> >
> when I put this line in my ~/.emacs and hit f5 I get "Mark set" in
> the mini buffer

It looks like the `f5' key has been bound in your setup to
`set-mark-command'.  According to `(elisp)Coding Conventions',

  "Function keys <F5> through <F9> without modifier keys are reserved
   for users to define."

So the key should be unbound.  Did you load the init file, or evaluate
the key binding expression before trying the key?

Raghavendra.

-- 
N. Raghavendra <raghu@mri.ernet.in> | See message headers for contact
Harish-Chandra Research Institute   | and OpenPGP details.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]