From: Ken Goldman <kgold@watson.ibm.com>
To: help-gnu-emacs@gnu.org
Subject: Re: setting compile-command
Date: Sun, 08 May 2011 22:20:13 -0400 [thread overview]
Message-ID: <iq7j0t$j64$1@dough.gmane.org> (raw)
In-Reply-To: <sa01v0nelt1.fsf@gmail.com>
I can offer a work around.
After you compile once from the root directory, emacs will create a
'compile' frame. Keep that frame available and M-x compile
from it.
On 04/27/2011 11:49 AM, Andrea Crotti wrote:
> It would be nice to set the compile-command for every project with
> dir-local variables. The problem is that the compile-command should
> be run from the root directory of the project, but apparently it
> doesn't work like that automatically and the "make" is run from the
> current position.
>
> I ended up with something like "cd $PROJ_DIR&& make" but I believe
> that there must be a better way to do that, am I right?
>
next prev parent reply other threads:[~2011-05-09 2:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-27 15:49 setting compile-command Andrea Crotti
2011-04-28 19:22 ` Thomas Hisch
2011-04-30 14:40 ` Andrea Crotti
2011-05-09 2:20 ` Ken Goldman [this message]
2011-05-12 12:57 ` Oleksandr Gavenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='iq7j0t$j64$1@dough.gmane.org' \
--to=kgold@watson.ibm.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).