[Top][All Lists]

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

Re: Passing current buffer to compile command

From: Eli Zaretskii
Subject: Re: Passing current buffer to compile command
Date: Sun, 16 Jan 2011 17:53:58 -0500

> From: duke <address@hidden>
> Newsgroups:
> 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.

> I realize that once I have a compiling history for the session, I can
> navigate using the arrows, but it's that first time that I'm exploring.

Even better: use "M-x recompile" after the first time, it will reissue
the same command automatically.

reply via email to

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