emacs-devel
[Top][All Lists]
Advanced

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

Re: add directory selection to the "compile" command


From: Denis Bueno
Subject: Re: add directory selection to the "compile" command
Date: Mon, 02 Jul 2007 09:55:58 -0600
User-agent: Microsoft-Entourage/11.3.3.061214

On 07/02/2007 08:02, "lucatrv" <address@hidden> wrote:

> Hi, sometimes I work on projects with many subfolders, so every time I issue
> the "compile" command whether I first have to change to the main folder
> (where the makefile is) or I have to manually change the commmand depending
> on the present buffer folder (such as "cd ../../.. && make -k") .

Using M-x recompile after the first M-x compile may solve your problem.  M-x
recompile remembers the last compile-command and default-directory.

I frequently work like this:

  - switch to Makefile directory
  - M-x compile RET
  - begin edit-recompile-cycle loop:
    * edit
    * M-x recompile RET
    * goto edit-recompile-cycle

-Denis






reply via email to

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