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: Kevin Rodgers
Subject: Re: Passing current buffer to compile command
Date: Tue, 18 Jan 2011 21:41:18 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 1/16/11 3:53 PM, Eli Zaretskii wrote:
From: duke<sidney.reilley.ii@gmail.com>
Newsgroups: gnu.emacs.help
Date: Sun, 16 Jan 2011 13:54:26 -0800 (PST)

I do M-x compile  or goto the menu M-` t c
then I'm in the mini-buffer.
I enter my compiler name; I've always typed-in the filename currently
being edited.
I'm wondering if there's another to pass that filename to the mini-
buffer?

Customize the value of compile-command.  You can put it in the file's
local variables section for each file that you edit.

Or set compile-command in a mode hook, as suggested in compile-command's
own doc string.

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

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