From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Project initialization files? Date: Tue, 17 Jul 2012 17:12:23 -0400 Message-ID: References: <83fw8q9t9c.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1342559557 9626 80.91.229.3 (17 Jul 2012 21:12:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2012 21:12:37 +0000 (UTC) Cc: Bruce Korb , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 23:12:36 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 1SrF4G-0005s7-MT for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 23:12:28 +0200 Original-Received: from localhost ([::1]:58097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrF4F-0005bw-SF for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2012 17:12:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrF4D-0005br-Ch for emacs-devel@gnu.org; Tue, 17 Jul 2012 17:12:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrF4C-0006WE-8J for emacs-devel@gnu.org; Tue, 17 Jul 2012 17:12:25 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:40205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrF4C-0006WA-4m for emacs-devel@gnu.org; Tue, 17 Jul 2012 17:12:24 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SrF4B-0007vU-Ft; Tue, 17 Jul 2012 17:12:23 -0400 In-Reply-To: <83fw8q9t9c.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 17 Jul 2012 20:45:03 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.10 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:151714 Archived-At: Eli Zaretskii writes: >> 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? 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)...