[Top][All Lists]

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

Re: compile in specific folder

From: Denis Bueno
Subject: Re: compile in specific folder
Date: Wed, 20 Jun 2007 08:32:36 -0600
User-agent: Microsoft-Entourage/

On 06/20/2007 03:51, "Martin" <address@hidden> wrote:


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"
    (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?

Perhaps an alternate definition will suffice?

    (defun my-compile ()
      (let ((default-directory mypath))
        (call-interactively 'compile)))


reply via email to

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