[Top][All Lists]

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

Re: Project initialization files?

From: Eli Zaretskii
Subject: Re: Project initialization files?
Date: Tue, 17 Jul 2012 20:45:03 +0300

> From: Bruce Korb <address@hidden>
> Date: Tue, 17 Jul 2012 10:25:33 -0700
> What to do?  It seems to me there ought to be some way of saying, "C files
> in this tree are gnu-style, that tree is Stroustrup and over there use
> the linux-kernel's favored style.  I think it boils down to this question:
> How hard would it be to set up a personal registry of projects
> (~/emacs.d/projects)
> that specified the c-file-style for all .c/.h files in a tree?  So if
> I edit files in
> ~/my-day-job, I use the "work" style, etc.
> Does such a thing already exist?  EDE isn't quite it and it requires a special
> file added to the source code to boot.  But what I'd like to find ought to be
> able to pilfer some of that code...

Is the .dir-locals.el feature (described in the "Specifying File
Variables" node of the Emacs manual) fit the bill?  If not, why not?

reply via email to

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