On 06/20/2007 03:51, "Martin" <m.gercke@gmail.com> wrote:
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?
Perhaps an alternate definition will suffice?
(defun my-compile ()
(interactive)
(let ((default-directory mypath))
(call-interactively 'compile)))
-Denis