From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Project initialization files? Date: Tue, 17 Jul 2012 20:45:03 +0300 Message-ID: <83fw8q9t9c.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1342547108 5653 80.91.229.3 (17 Jul 2012 17:45:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2012 17:45:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bruce Korb Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 19:45:07 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SrBpW-0000tL-5P for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 19:45:02 +0200 Original-Received: from localhost ([::1]:58863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrBpV-0006Lq-CF for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 13:45:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrBpS-0006Lg-5y for emacs-devel@gnu.org; Tue, 17 Jul 2012 13:44:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrBpR-0001uy-9Y for emacs-devel@gnu.org; Tue, 17 Jul 2012 13:44:58 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:41780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrBpP-0001ul-N6; Tue, 17 Jul 2012 13:44:55 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M7B00C00FONNE00@a-mtaout21.012.net.il>; Tue, 17 Jul 2012 20:44:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7B00C2GFYTJC50@a-mtaout21.012.net.il>; Tue, 17 Jul 2012 20:44:53 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151710 Archived-At: > From: Bruce Korb > 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?