emacs-devel
[Top][All Lists]
Advanced

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

Re: Project initialization files?


From: Dan Nicolaescu
Subject: Re: Project initialization files?
Date: Tue, 17 Jul 2012 17:12:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> 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?

What this points out is that we haven't made much effort to spread the
knowledge about .dir-locals.el.
GNU projects like GCC/gdb/binutils/etc could incorporate customized
versions of .dir-locals.el  (the one in emacs can be used as a starting
point)... 



reply via email to

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