* Per-directory init files?
@ 2008-08-27 13:25 Roy Smith
2008-08-28 15:14 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Roy Smith @ 2008-08-27 13:25 UTC (permalink / raw)
To: help-gnu-emacs
Is there any way to have per-directory init files?
I've got a directory where I need to run "./install" after each round of
edits to any file in that directory. What I'd like to do is make
"./install" my default compile command, but only when I'm in that
directory. How can I do that?
I'm running GNU Emacs 22.1.1 on OSX-10.5. Amazingly enough, OSX doesn't
seem to ship with make, so I can't just put a Makefile in my directory with
"./install" as the default action :-(
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Per-directory init files?
2008-08-27 13:25 Per-directory init files? Roy Smith
@ 2008-08-28 15:14 ` Peter Dyballa
2008-08-28 16:09 ` Nikolaj Schumacher
2008-09-09 19:47 ` E.L.K.
2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2008-08-28 15:14 UTC (permalink / raw)
To: Roy Smith; +Cc: help-gnu-emacs
Am 27.08.2008 um 15:25 schrieb Roy Smith:
> I'm running GNU Emacs 22.1.1 on OSX-10.5. Amazingly enough, OSX
> doesn't
> seem to ship with make, so I can't just put a Makefile in my
> directory with
> "./install" as the default action :-(
Have you looked into the developer metapackage?
--
Greetings
Pete
There is no worse tyranny than to force a man to pay for what he does
not want merely because you think it would be good for him.
– Robert Heinlein
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Per-directory init files?
2008-08-27 13:25 Per-directory init files? Roy Smith
2008-08-28 15:14 ` Peter Dyballa
@ 2008-08-28 16:09 ` Nikolaj Schumacher
2008-09-09 19:47 ` E.L.K.
2 siblings, 0 replies; 4+ messages in thread
From: Nikolaj Schumacher @ 2008-08-28 16:09 UTC (permalink / raw)
To: Roy Smith; +Cc: help-gnu-emacs
Roy Smith <roy@panix.com> wrote:
> Is there any way to have per-directory init files?
>
> I've got a directory where I need to run "./install" after each round of
> edits to any file in that directory. What I'd like to do is make
> "./install" my default compile command, but only when I'm in that
> directory. How can I do that?
Emacs 23 will have support for directory-local variables.
For now you can use
http://www.emacswiki.org/cgi-bin/emacs/project-local-variables.el
See also:
http://www.emacswiki.org/cgi-bin/wiki/ProjectSettings
> Amazingly enough, OSX doesn't seem to ship with make
As Peter said, you'll need to install the Developer tools.
regards,
Nikolaj Schumacher
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Per-directory init files?
2008-08-27 13:25 Per-directory init files? Roy Smith
2008-08-28 15:14 ` Peter Dyballa
2008-08-28 16:09 ` Nikolaj Schumacher
@ 2008-09-09 19:47 ` E.L.K.
2 siblings, 0 replies; 4+ messages in thread
From: E.L.K. @ 2008-09-09 19:47 UTC (permalink / raw)
To: help-gnu-emacs
On Wed, Aug 27, 2008 at 09:25:32AM -0400, Roy Smith wrote:
> Is there any way to have per-directory init files?
>
> I've got a directory where I need to run "./install" after each round of
> edits to any file in that directory. What I'd like to do is make
> "./install" my default compile command, but only when I'm in that
> directory. How can I do that?
>
> I'm running GNU Emacs 22.1.1 on OSX-10.5. Amazingly enough, OSX doesn't
> seem to ship with make, so I can't just put a Makefile in my directory with
> "./install" as the default action :-(
You can, actually, place in your ~/.emacs something like that:
(if (file-readable-p ".vars")
(load-file ".vars")
)
so, when emacs will be started in some directory, it will check
if there ".vars" file there (as .emacs executed there) and if so,
will load it.
and in file ".vars" you can place
(setq compile-command "./install")
i haven't tested this, but this should work
--
E.L.K.
Tuesday, 09 of September, 2008, 22:45
зы. C_U_L8r!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-09 19:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27 13:25 Per-directory init files? Roy Smith
2008-08-28 15:14 ` Peter Dyballa
2008-08-28 16:09 ` Nikolaj Schumacher
2008-09-09 19:47 ` E.L.K.
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).