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: despen
Subject: Re: Passing current buffer to compile command
Date: Mon, 17 Jan 2011 00:48:14 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

despen@verizon.net writes:

> duke <sidney.reilley.ii@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.


reply via email to

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