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

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

Re: Passing current buffer to compile command


From: duke
Subject: Re: Passing current buffer to compile command
Date: Mon, 17 Jan 2011 11:09:10 -0800 (PST)
User-agent: G2/1.0

On Jan 16, 10:48 pm, des...@verizon.net wrote:
> des...@verizon.net writes:
> > duke <sidney.reilley...@gmail.com> writes:
>
> >> How do I do that? I'm not using make, but another compiler. So I need
> >> to pass a filename. Instead of inputing the filename, how do I pass
> >> the current buffer file name? %f ?
>
> > What does make have to do with the compiler?
>
> > Your best bet is to learn make, it will pay back dividends later.
>
> > But if you insist, one solution is to put a comment block at the end
> > of your file like this:
>
> > # Local Variables:
> > # compile-command: "mycompiler myfile"
> > # End:
>
> To activate above, save buffer to file, delete buffer, reload buffer.

Cool! thanks...


reply via email to

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