Author: E.L.K.E.L.K. Date: Sep 9, 2008 12:47
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.
|