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

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

compile in specific folder


From: Martin
Subject: compile in specific folder
Date: Wed, 20 Jun 2007 09:51:07 -0000
User-agent: G2/1.0

Hi,

I am using emacs to work on a project that needs to be compiled (call
make) in a specific folder, independent of the current buffer.
At the moment I am using this:

(global-set-key [(f9)] 'my-compile)

(defun my-compile ()
    "compile in our standard directory"
    (interactive)
    (cd mypath)
    (call-interactively 'compile)
    )

However, this has the drawback that after a compile my minibuffer
always starts in mypath instead of the current buffer's path.
Any ideas there?
And while we're on the topic of compiling.
How do I make compile to be non-interactive?
=> I want to be able to define a key for "make all" and one for just
"make.

Thanks in advance

Martin



reply via email to

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